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
parent 026f3654b9
commit 94aa8ae3a2
Notes: blender-bot 2023-02-14 19:57:37 +01:00
Referenced by issue #44131, Export Fbx Error Thrown with Local Mesh Child and Deformee of Linked Animated Armature
1 changed files with 2 additions and 1 deletions

View File

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