Rigify: clear the Armature animation data in addition to the Object.

After the change in PoseBone.bone behavior, drivers will be added there.
This commit is contained in:
Alexander Gavrilov 2019-05-14 22:51:59 +03:00
parent 11bb2337e0
commit 467303ba70
1 changed files with 1 additions and 0 deletions

View File

@ -126,6 +126,7 @@ def generate_rig(context, metarig):
# Get rid of anim data in case the rig already existed
print("Clear rig animation data.")
obj.animation_data_clear()
obj.data.animation_data_clear()
# Select generated rig object
metarig.select_set(False)