Add Easy_Weight to Addons #47

Merged
Nick Alberelli merged 48 commits from feature/easy_weights into main 2023-05-17 22:13:57 +02:00
Showing only changes of commit b5bd0a960a - Show all commits

View File

@ -124,6 +124,7 @@ 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)
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.