[Bf-extensions-cvs] [7121beb] master: FBX fix: only considered an object as deformed by an armature if parent type is 'ARMATURE'!
Bastien Montagne
noreply at git.blender.org
Fri Dec 19 12:49:30 CET 2014
Commit: 7121beb02ea45674045b668d0bdfade89781225c
Author: Bastien Montagne
Date: Fri Dec 19 11:14:58 2014 +0100
Branches: master
https://developer.blender.org/rBA7121beb02ea45674045b668d0bdfade89781225c
FBX fix: only considered an object as deformed by an armature if parent type is 'ARMATURE'!
===================================================================
M io_scene_fbx/fbx_utils.py
===================================================================
diff --git a/io_scene_fbx/fbx_utils.py b/io_scene_fbx/fbx_utils.py
index be36579..08a3328 100644
--- a/io_scene_fbx/fbx_utils.py
+++ b/io_scene_fbx/fbx_utils.py
@@ -1078,7 +1078,7 @@ class ObjectWrapper(metaclass=MetaObjectWrapper):
def is_deformed_by_armature(self, arm_obj):
if not (self.is_object and self.type == 'MESH'):
return False
- if self.parent == arm_obj:
+ if self.parent == arm_obj and self.bdata.parent_type == 'ARMATURE':
return True
for mod in self.bdata.modifiers:
if mod.type == 'ARMATURE' and mod.object == arm_obj.bdata:
More information about the Bf-extensions-cvs
mailing list