Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect rest pose #99

Open
artellblender opened this issue Feb 19, 2019 · 3 comments
Open

Incorrect rest pose #99

artellblender opened this issue Feb 19, 2019 · 3 comments
Labels

Comments

@artellblender
Copy link
Contributor

Hello,
Thanks for this great exporter!
I've noticed one issue: it does not export the right bind pose/rest pose when the animations are not in rest pose on the first frame. Instead, the pose at the first frame is set as the bind pose. Is this a known issue of this exporter, or am I missing something?
By the way, i've updated the code to Blender 2.8, in case you're interested i'll submit a pull request.

@artellblender
Copy link
Contributor Author

File to demonstrate the issue:
test.zip

1

@artellblender
Copy link
Contributor Author

I've fixed it in a patch along the 2.8 update
#100

@jitspoe
Copy link

jitspoe commented Jul 30, 2019

Nice. I ended up fixing this same issue myself. Funny thing is that it was setting it to the REST pose, but didn't force the scene to update. Here's what I did:

        if(armature_modifier):
            #doing this per object is inefficient, should be improved, maybe?
            armature_poses = [arm.pose_position for arm in bpy.data.armatures]
            for arm in bpy.data.armatures:
                print(arm.pose_position)
                arm.pose_position = "REST"
                arm.update_tag()
                bpy.context.scene.frame_set(bpy.context.scene.frame_current)

Curious what fixed it in your change. Didn't see anything at a quick glance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants