[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1329] trunk/py/scripts/addons/ io_export_anim_mesh_xna/export_xna.py: Minor changes because some people got the same animations when they exported .

John Brown jcb at special-p.co.uk
Thu Dec 30 20:10:12 CET 2010


Revision: 1329
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=1329
Author:   jcbdigger
Date:     2010-12-30 20:10:11 +0100 (Thu, 30 Dec 2010)

Log Message:
-----------
Minor changes because some people got the same animations when they exported.  I could not reproduce the problem but the changes still worked for my tests so they have been incorporated.  See line 2499.

Modified Paths:
--------------
    trunk/py/scripts/addons/io_export_anim_mesh_xna/export_xna.py

Modified: trunk/py/scripts/addons/io_export_anim_mesh_xna/export_xna.py
===================================================================
--- trunk/py/scripts/addons/io_export_anim_mesh_xna/export_xna.py	2010-12-30 16:00:39 UTC (rev 1328)
+++ trunk/py/scripts/addons/io_export_anim_mesh_xna/export_xna.py	2010-12-30 19:10:11 UTC (rev 1329)
@@ -2496,10 +2496,13 @@
 
                 # 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
-                # scene.update(1)
+                    # From the original FBX exporter but some people have reported problems where all the
+                    # animations exported are the same (JCB)
+                    #if ob.animation_data and blenAction in my_bone.blenActionList:
+                    #    ob.animation_data.action = blenAction
+                    # This change was proposed by Evan Todd (30 Dec.2010)
+                    if my_bone.blenObject.animation_data and blenAction in my_bone.blenActionList:
+                        my_bone.blenObject.animation_data.action = blenAction
 
             #file.write('\n\t\tFileName: "Default_Take.tak"') # ??? - not sure why this is needed
             #file.write('\n\t\tFileName: "%s.tak"' % sane_name_mapping_take[blenAction.name]) # ??? - not sure why this is needed




More information about the Bf-extensions-cvs mailing list