FBX fix: only considered an object as deformed by an armature if parent type is 'ARMATURE'!

This commit is contained in:
Bastien Montagne 2014-12-19 11:14:58 +01:00
parent 6454d95e19
commit 7121beb02e
1 changed files with 1 additions and 1 deletions

View File

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