[Bf-extensions-cvs] [467303ba] master: Rigify: clear the Armature animation data in addition to the Object.
Alexander Gavrilov
noreply at git.blender.org
Tue May 14 21:52:06 CEST 2019
Commit: 467303ba70d6f406a1942321f1962d2ce2491928
Author: Alexander Gavrilov
Date: Tue May 14 22:51:59 2019 +0300
Branches: master
https://developer.blender.org/rBA467303ba70d6f406a1942321f1962d2ce2491928
Rigify: clear the Armature animation data in addition to the Object.
After the change in PoseBone.bone behavior, drivers will be added there.
===================================================================
M rigify/generate.py
===================================================================
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)
More information about the Bf-extensions-cvs
mailing list