How to disable the root motion rotation only?

I hope we can get an answer asap. Updating from 4.5 to the recent versions broke every animation with enabled root motion, as the root motion rotation is enabled by default.