[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26562] trunk/blender/release/scripts/io/ export_fbx.py: [#20934] fbx export with armature results in 0bytes writen REV:26548

Campbell Barton ideasman42 at gmail.com
Tue Feb 2 19:56:06 CET 2010


Revision: 26562
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26562
Author:   campbellbarton
Date:     2010-02-02 19:56:06 +0100 (Tue, 02 Feb 2010)

Log Message:
-----------
[#20934] fbx export with armature results in 0bytes writen REV:26548

Modified Paths:
--------------
    trunk/blender/release/scripts/io/export_fbx.py

Modified: trunk/blender/release/scripts/io/export_fbx.py
===================================================================
--- trunk/blender/release/scripts/io/export_fbx.py	2010-02-02 18:54:23 UTC (rev 26561)
+++ trunk/blender/release/scripts/io/export_fbx.py	2010-02-02 18:56:06 UTC (rev 26562)
@@ -524,7 +524,7 @@
                 self.__pose_bone.tail.copy() )
             '''
 
-            self.__anim_poselist[f] = self.__pose_bone.pose_matrix.copy()
+            self.__anim_poselist[f] = self.__pose_bone.matrix.copy()
 # 			self.__anim_poselist[f] = self.__pose_bone.poseMatrix.copy()
 
         # get pose from frame.
@@ -2025,11 +2025,11 @@
         # This is needed so applying modifiers dosnt apply the armature deformation, its also needed
         # ...so mesh objects return their rest worldspace matrix when bone-parents are exported as weighted meshes.
         # set every armature to its rest, backup the original values so we done mess up the scene
-        ob_arms_orig_rest = [arm.rest_position for arm in bpy.data.armatures]
+        ob_arms_orig_rest = [arm.pose_position for arm in bpy.data.armatures]
 # 		ob_arms_orig_rest = [arm.restPosition for arm in bpy.data.armatures]
 
         for arm in bpy.data.armatures:
-            arm.rest_position = True
+            arm.pose_position = 'REST'
 # 			arm.restPosition = True
 
         if ob_arms_orig_rest:
@@ -2204,7 +2204,7 @@
     if EXP_ARMATURE:
         # now we have the meshes, restore the rest arm position
         for i, arm in enumerate(bpy.data.armatures):
-            arm.rest_position = ob_arms_orig_rest[i]
+            arm.pose_position = ob_arms_orig_rest[i]
 # 			arm.restPosition = ob_arms_orig_rest[i]
 
         if ob_arms_orig_rest:





More information about the Bf-blender-cvs mailing list