Skip to content

Commit

Permalink
Fix animation when baking is forced by code
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduroure committed Feb 22, 2020
1 parent 10778a2 commit 14e8b46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def get_bone_matrix(blender_object_if_armature: typing.Optional[bpy.types.Object
bpy.context.scene.frame_set(frame)
for pbone in blender_object_if_armature.pose.bones:
if bake_bone is None:
matrix = pbone.matrix_basis
matrix = pbone.matrix_basis.copy()
else:
matrix = pbone.matrix
matrix = blender_object_if_armature.convert_space(pose_bone=pbone, matrix=matrix, from_space='POSE', to_space='LOCAL')
Expand Down

0 comments on commit 14e8b46

Please sign in to comment.