I loaded AnimatedModel in editor, manually rotated bones and then saved the scene.
When i load this scene in editor, the bones nodes are rotated as saved. However when I load the scene in my angel script application then the bone rotations are reset to the rest positions. I checked the editor loading code but didn’t find why the results are different.
I’m loading by:
File loadFile(fileSystem.programDir + "Data/Scenes/HospitalRoom.xml", FILE_READ);
scene_.LoadXML(loadFile);
Ps. I know that I should probably create animation or Animation state for that, but the question is what makes loading of the same scene different.