-
Notifications
You must be signed in to change notification settings - Fork 75
Description
Normally I push all my animation actions down on the NLA stack and export them to ogre meshes and a shared ogre skeleton via blender2ogre. I've been doing this for a long time but as of 4.4 and 4.5 this no longer works. I'm only able to get a single animation which is the one on top that isn't pushed down.
In skleton.py, line 410 - 412 we call bpy.context.scene.frame_set(frame) to update the pbone pointers. The translation and quaternion (pose_location and pose_rotation) are identity value (length and angle are < 0.0001) for every action except the one not pushed down at the top. As a result, only that single action is added to the ogre skeleton file.
see here for the lines i'm talking about:
blender2ogre/io_ogre/ogre/skeleton.py
Line 412 in ef1d926
| bone.update() |
The blender api must have changed in some way so that the bones are "identity" except at the top.
The ogre script still reports that all the actions are being exported and includes the frame range but since the transform is identity animationFound = False and the code returns early at line 425.
I'm out of time, for now, to debug this further and will use 4.3 for the time being.
Thanks!