Add Easy_Weight
to Addons
#47
@ -124,7 +124,8 @@ class EASYWEIGHT_OT_toggle_weight_paint(bpy.types.Operator):
|
||||
armature.hide_set(info['armature_hide'])
|
||||
armature.show_in_front = info['armature_in_front']
|
||||
coll = bpy.data.collections.get(coll_name)
|
||||
bpy.data.collections.remove(coll)
|
||||
if coll:
|
||||
bpy.data.collections.remove(coll)
|
||||
else:
|
||||
# If we didn't enter weight paint mode with this operator, just go into object mode when trying to leave WP mode with this operator.
|
||||
bpy.ops.object.mode_set(mode='OBJECT')
|
||||
|
Loading…
Reference in New Issue
Block a user