Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
SE2Dev committed Dec 3, 2019
2 parents 03d6d36 + f28c42c commit 56441d4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions import_seanim.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,7 @@ def load_seanim(self, context, progress, filepath=""):
angle = quat.to_matrix().to_3x3()

bone.matrix_basis.identity()
try:
bone.parent.matrix
except:
if bone.parent is None:
# I don't actually remember why this is here - probably
# to set the root bone(s) to its rest pos / angle
bone.matrix_basis.identity()
Expand Down Expand Up @@ -279,5 +277,5 @@ def load_seanim(self, context, progress, filepath=""):
notetrack = ob.animation_data.action.pose_markers.new(note.name)
notetrack.frame = note.frame

bpy.context.scene.update()
bpy.context.evaluated_depsgraph_get().update()
bpy.ops.object.mode_set(mode='POSE')

0 comments on commit 56441d4

Please sign in to comment.