diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-10-01 10:56:09 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-10-01 10:56:09 +0400 |
commit | 34998c87c0baf8c502c34ff5526d72c57f8821a9 (patch) | |
tree | 65585f32a1a7e0f0dc57ed308d17075355a36b4a /io_scene_fbx/fbx_utils.py | |
parent | 77618baacd0df1414943a082ca3deea2892e3750 (diff) |
Fix T42029: FBX export: armatures linked to mesh only through modifier were not exported correctly.
Now also check modifiers stack.
Diffstat (limited to 'io_scene_fbx/fbx_utils.py')
-rw-r--r-- | io_scene_fbx/fbx_utils.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/io_scene_fbx/fbx_utils.py b/io_scene_fbx/fbx_utils.py index 8e632ea4..df215f9d 100644 --- a/io_scene_fbx/fbx_utils.py +++ b/io_scene_fbx/fbx_utils.py @@ -1054,6 +1054,15 @@ class ObjectWrapper(metaclass=MetaObjectWrapper): return () material_slots = property(get_material_slots) + def is_deformed_by_armature(self, arm_obj): + if not (self.is_object and self.type == 'MESH'): + return False + if self.parent == arm_obj: + return True + for mod in self.bdata.modifiers: + if mod.type == 'ARMATURE' and mod.object == arm_obj.bdata: + return True + # #### Duplis... def dupli_list_create(self, scene, settings='PREVIEW'): if self._tag == 'OB': |