diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2019-05-14 22:51:59 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2019-05-14 22:51:59 +0300 |
commit | 467303ba70d6f406a1942321f1962d2ce2491928 (patch) | |
tree | db40ed3b652db0a0a9c3069f55eed98110d779b5 /rigify | |
parent | 11bb2337e021efb6463fcbbb704c955366f0319a (diff) |
Rigify: clear the Armature animation data in addition to the Object.
After the change in PoseBone.bone behavior, drivers will be added there.
Diffstat (limited to 'rigify')
-rw-r--r-- | rigify/generate.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rigify/generate.py b/rigify/generate.py index 2f2e3655..8fe734c5 100644 --- a/rigify/generate.py +++ b/rigify/generate.py @@ -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) |