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

This commit is contained in:
Bastien Montagne 2015-03-26 08:40:49 +01:00 committed by Sergey Sharybin
parent 92571b9b71
commit 7520b42805
1 changed files with 2 additions and 1 deletions

View File

@ -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!