[Bf-extensions-cvs] [7520b42] : Fix T44131: FBX Export: During animation baking, code could try to set readonly properties.

Bastien Montagne noreply at git.blender.org
Thu Mar 26 17:11:43 CET 2015


Commit: 7520b428053fd0362285e0b91a72e8e4f720af5a
Author: Bastien Montagne
Date:   Thu Mar 26 08:40:49 2015 +0100
Branches: 
https://developer.blender.org/rBA7520b428053fd0362285e0b91a72e8e4f720af5a

Fix T44131: FBX Export: During animation baking, code could try to set readonly properties.

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

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 a5bae51..d8e7cd1 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -1997,7 +1997,8 @@ def fbx_animations(scene_data):
                 'show_only_shape_key', 'use_shape_key_edit_mode', 'active_shape_key_index',
             )
             for p in props:
-                setattr(ob_to, p, getattr(ob_from, p))
+                if not ob_to.is_property_readonly(p):
+                    setattr(ob_to, p, getattr(ob_from, p))
 
         for ob_obj in scene_data.objects:
             # Actions only for objects, not bones!



More information about the Bf-extensions-cvs mailing list