Skip to content

Commit

Permalink
Merge pull request #26 from poly-hammer/send2ue-rigifycontrolmode-iss…
Browse files Browse the repository at this point in the history
…ue24

Fixed animation_data NoneType error (#24)
  • Loading branch information
JoshQuake authored Jun 26, 2024
2 parents 0a3ab4f + 3386e04 commit c2dd882
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ue2rigify/core/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,9 @@ def sync_nla_track_data(control_rig_object, source_rig_object):
if control_rig_object and source_rig_object:
# get the nla tracks on the source rig
control_nla_tracks = control_rig_object.animation_data.nla_tracks
# create AnimData if there isn't one
if source_rig_object.animation_data is None:
source_rig_object.animation_data_create()
source_nla_tracks = source_rig_object.animation_data.nla_tracks

# remove all the nla tracks from the source rig
Expand Down

0 comments on commit c2dd882

Please sign in to comment.