FBX export: Fix stupid own error regarding matrix_parent_inverse...

This commit is contained in:
Bastien Montagne 2014-12-19 12:12:35 +01:00
parent 7121beb02e
commit 6bc837db2c
1 changed files with 2 additions and 1 deletions

View File

@ -995,7 +995,8 @@ class ObjectWrapper(metaclass=MetaObjectWrapper):
if self._tag in {'DP', 'OB'} and parent:
# To get *real* local matrix of a child object, we also need to take into account its inverted par mat!
matrix = self.bdata.matrix_parent_inverse * matrix
# In fact, this is wrong - since we do not store that matrix in FBX at all, we shall not use it here...
#~ matrix = self.bdata.matrix_parent_inverse * matrix
if parent._tag == 'BO':
# In bone parent case, we get transformation in **bone tip** space (sigh).
# Have to bring it back into bone root, which is FBX expected value.