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

Bastien Montagne noreply at git.blender.org
Thu Mar 26 08:41:49 CET 2015


Commit: 94aa8ae3a2433f0fe0fcf81ae1b3c98df980bbc8
Author: Bastien Montagne
Date:   Thu Mar 26 08:40:49 2015 +0100
Branches: master
https://developer.blender.org/rBA94aa8ae3a2433f0fe0fcf81ae1b3c98df980bbc8

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 57fc4de..00d1f3c 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -2000,7 +2000,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