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-02-02 21:56:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-02-02 21:56:06 +0300
commit717581df9333d4d4bf8e531b4d4c091d2f8f3930 (patch)
treeaca0b3b4d87e607569b262a161800a0bd76ef91b /release
parent820517ba9155b50077f6f8bc2892e7be80f68368 (diff)
[#20934] fbx export with armature results in 0bytes writen REV:26548
Diffstat (limited to 'release')
-rw-r--r--release/scripts/io/export_fbx.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/io/export_fbx.py b/release/scripts/io/export_fbx.py
index 80a240d0e44..f8cc4bce4ac 100644
--- a/release/scripts/io/export_fbx.py
+++ b/release/scripts/io/export_fbx.py
@@ -524,7 +524,7 @@ def write(filename, batch_objects = None, \
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 @@ def write(filename, batch_objects = None, \
# 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 @@ def write(filename, batch_objects = None, \
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: