Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-11-29 02:07:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-11-29 02:07:49 +0300
commit2dcec226277910160caddf5670b2a6637b7e3ff8 (patch)
tree769d29c049e35ef5907bf0a03a322987ea0a97a6 /release
parent49102a84d114f10dbe69577d9d6f1813c2d0290a (diff)
bugfix [#24947] Animations data replaced by the first animation (fbx exporter)
this feature was ported from 2.5x but not tested, referring to the wrong object when assigning actions.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/op/io_scene_fbx/export_fbx.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/release/scripts/op/io_scene_fbx/export_fbx.py b/release/scripts/op/io_scene_fbx/export_fbx.py
index d3bd65f187b..621e51ab493 100644
--- a/release/scripts/op/io_scene_fbx/export_fbx.py
+++ b/release/scripts/op/io_scene_fbx/export_fbx.py
@@ -2639,10 +2639,10 @@ Takes: {''')
act_end = int(act_end)
# Set the action active
- for my_bone in ob_arms:
- if ob.animation_data and blenAction in my_bone.blenActionList:
- ob.animation_data.action = blenAction
- # print '\t\tSetting Action!', blenAction
+ for my_arm in ob_arms:
+ if my_arm.blenObject.animation_data and blenAction in my_arm.blenActionList:
+ my_arm.blenObject.animation_data.action = blenAction
+ # print('\t\tSetting Action!', blenAction)
# scene.update(1)
file.write('\n\t\tFileName: "Default_Take.tak"') # ??? - not sure why this is needed
@@ -2801,9 +2801,9 @@ Takes: {''')
# end action loop. set original actions
# do this after every loop incase actions effect eachother.
- for my_bone in ob_arms:
- if my_bone.blenObject.animation_data:
- my_bone.blenObject.animation_data.action = my_bone.blenAction
+ for my_arm in ob_arms:
+ if my_arm.blenObject.animation_data:
+ my_arm.blenObject.animation_data.action = my_arm.blenAction
file.write('\n}')
@@ -2871,10 +2871,12 @@ Takes: {''')
file.write('\n}')
file.write('\n')
- # Incase sombody imports this, clean up by clearing global dicts
+ # XXX, shouldnt be global!
sane_name_mapping_ob.clear()
sane_name_mapping_mat.clear()
sane_name_mapping_tex.clear()
+ sane_name_mapping_take.clear()
+ sane_name_mapping_group.clear()
ob_arms[:] = []
ob_bones[:] = []