Why my gravity direction is rotating with transform.rotation?

My main character is using rigidbody with gravity:

Physics.gravity = new Vector3(0, -gravity, 0);

I’d freezed rotations(I’m using scripts for rotation) because my character was turning round on terrain. Everything works fine, but when my character falls down then it don’t fall down straight but the direction of falling down is the same as direction of transform.rotation so my character can even walk on the ceiling because of the direction of gravity.

Finally! I’ve found the solution.
It was the problem with ‘Apply Root Motion’ option in Animator settings. That should be unchecked. That’s all…