Mecanim animation - wrong leg position in animation

I’m having problem with mecanim animation, in legacy it plays fine, while in mecanim legs moves too much around and I spent few hours figuring out why without any luck. Transition times changes nothing. And I don’t know is it related to my code or mecanim itself.

Here is the comparison video: http://videobam.com/yUTDs

Inside mecanim controller preview, it plays fine: http://videobam.com/UzLsw

I debug controller, only “Attack” animation is active at once, so it can’t be related to blending or e.t.c Here is my controller setup:

I did not work with mecanim system too much yet, so it is hard for me to tell what’s going on, will appreciate any advice on this.

I know this old but got a high hit for googling a problem like this. I was not using “Apply Root Motion” on the characters animator, and when trying to apply root motion animations without it turned on, it can sometimes cause look distorted, but in fact when the character is properly moved with the motion, it does look in the right perspective.

So for some animations I turned on “Apply Root Motion”, and for others I just move the character controller around myself.