forked from bartvdbraak/blender
bugfix for exporting an FBX animation for an object that was the child of an armature deformed mesh.
This commit is contained in:
parent
0e588cbf10
commit
8503bcde23
@ -509,8 +509,12 @@ def save(operator, context, filepath="",
|
||||
else:
|
||||
return self.matrixWorld
|
||||
|
||||
def setPoseFrame(self, f):
|
||||
self.__anim_poselist[f] = self.blenObject.matrix_world.copy()
|
||||
def setPoseFrame(self, f, fake=False):
|
||||
if fake:
|
||||
# annoying, have to clear GLOBAL_MATRIX
|
||||
self.__anim_poselist[f] = self.matrixWorld * GLOBAL_MATRIX.copy().invert()
|
||||
else:
|
||||
self.__anim_poselist[f] = self.blenObject.matrix_world.copy()
|
||||
|
||||
def getAnimParRelMatrix(self, frame):
|
||||
if self.fbxParent:
|
||||
@ -2665,7 +2669,7 @@ Takes: {''')
|
||||
#Blender.Window.RedrawAll()
|
||||
if ob_generic == ob_meshes and my_ob.fbxArm:
|
||||
# We cant animate armature meshes!
|
||||
pass
|
||||
my_ob.setPoseFrame(i, fake=True)
|
||||
else:
|
||||
my_ob.setPoseFrame(i)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user