[Bf-extensions-cvs] [ec3a3c6] master: FBX export: always copy org (blenddata) matrices (when not done implicitely by e.g. multiplication).

Bastien Montagne noreply at git.blender.org
Tue May 6 11:00:40 CEST 2014


Commit: ec3a3c6f9e8bed4fb368e5a263f9d492a447d036
Author: Bastien Montagne
Date:   Tue May 6 10:45:19 2014 +0200
https://developer.blender.org/rBAec3a3c6f9e8bed4fb368e5a263f9d492a447d036

FBX export: always copy org (blenddata) matrices (when not done implicitely by e.g. multiplication).

===================================================================

M	io_scene_fbx/export_fbx_bin.py

===================================================================

diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index 5404459..75c2518 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -1033,10 +1033,10 @@ def fbx_object_matrix(scene_data, obj, armature=None, local_space=False, global_
         if is_global:
             matrix = armature.matrix_world * matrix
         elif bo.parent:  # Handle parent bone if needed.
-            par_matrix = bo.parent.matrix if is_posebone else bo.parent.matrix_local
+            par_matrix = (bo.parent.matrix if is_posebone else bo.parent.matrix_local).copy()
             matrix = (par_matrix * MAT_CONVERT_BONE).inverted() * matrix
     else:
-        matrix = obj.matrix_local
+        matrix = obj.matrix_local.copy()
 
         # Lamps, and cameras need to be rotated (in local space!).
         if obj.type == 'LAMP':



More information about the Bf-extensions-cvs mailing list