diff options
-rw-r--r-- | rigify/generate.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rigify/generate.py b/rigify/generate.py index d726f14a..5b5f0e98 100644 --- a/rigify/generate.py +++ b/rigify/generate.py @@ -598,6 +598,9 @@ def create_persistent_rig_ui(obj, script): skip = False driver = None + if not obj.animation_data: + obj.animation_data_create() + for fcurve in obj.animation_data.drivers: if fcurve.data_path == 'pass_index': driver = fcurve.driver |