How do I make the Idle animation preserve the rotation of the Turn In Place animation?

I have just started experimenting with root motion in Unreal Engine, and I have faced a problem: Both Turn In Place and Idle animations have root motion enabled, and they are in separate states connected to each other in the state machine. From the Idle to Turn In Place animation state, the character turns 180 degrees using the Turn In Place animation, and when it transitions to the Idle state, it rotates back to whatever rotation the character had in the Idle animation.

Is there a setting that could help me keep root motion enabled for both animations while making Idle preserve the rotation that the Turn In Place animation had when it transitioned to Idle?

There is a Root Motion Root Lock setting that has three different options, but I’m not experienced with those.