why playing animation resets object's transform in Mecanim?

I used to work with unity 3.5 and I have just updated to 4.1.
I used the parenting trick to make animations play locally. The old parenting trick doesn’t work in 4.1 and the objects move to their original positions when animation is played.
is there any way to play animations locally using Mecanim?

Ok I figured it out so I’m posting if someone had the same question.
I had to uncheck the Apply Root Motion in Animator component options.