CoDEmanX / blender-cod

Blender Add-On for Call of Duty® modding
83 stars 26 forks source link

Error on export if using "Pose animation" #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a model, an armature and parent the model to the armature (modifier)
2. Pose the model
3. Export to xmodel_export and enable "Pose animation"

What is the expected output? What do you see instead?
Export script should use the PoseBones and export their pose, but an error 
occurs:

    b_tail = a_matrix * bone.tail_local
AttributeError: 'PoseBone' object has no attribute 'tail_local'

Please use labels and text to provide additional information.

The bone coordinate calculation was changed from bone.tail to tail_local to 
generate correct tail positions. But the calculation has to be different for 
PoseBones, as they don't have a "tail_local" coord (bone.tail_local == 
posebone.tail ??)

Original issue reported on code.google.com by codem...@gmx.de on 24 Nov 2011 at 9:08

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 559d8d12011b.

Original comment by codem...@gmx.de on 25 Jan 2012 at 4:07