Skip to content
Snippets Groups Projects
Commit 29a35984 authored by Alexander Gavrilov's avatar Alexander Gavrilov
Browse files

Fix T61711: Rigify fails to complete generate if no rigs create drivers.

The code attaching the UI script to the rig didn't check
that animation_data exists before accessing it.
parent b1320f3a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment