Skip to content

blender 4.4.3 and 4.5.3 only export a single animation action unlike 4.3 and prior. #266

@creadmefford

Description

@creadmefford

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:

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions