Fix T71678: Rigify crash if the Advanced mode is set to New.
This is copying one line from rB71565f82b24c in master.
This commit is contained in:
parent
e694c1bdc1
commit
ed5b81f501
Notes:
blender-bot
2023-02-14 19:05:30 +01:00
Referenced by issue #71678, Rigify doesn't generate if advanced option is set to "new"
|
@ -114,7 +114,7 @@ class Generator(base_generate.BaseGenerator):
|
|||
self.widget_collection = ensure_widget_collection(context)
|
||||
|
||||
# Remove wgts if force update is set
|
||||
wgts_group_name = "WGTS_" + (self.rig_old_name or obj.name)
|
||||
wgts_group_name = "WGTS_" + (self.rig_old_name or self.obj.name)
|
||||
if wgts_group_name in scene.objects and id_store.rigify_force_widget_update:
|
||||
bpy.ops.object.mode_set(mode='OBJECT')
|
||||
bpy.ops.object.select_all(action='DESELECT')
|
||||
|
|
Loading…
Reference in New Issue