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 5a632d9978 - Show all commits

View File

@ -51,6 +51,13 @@ class EASYWEIGHT_OT_toggle_weight_paint(bpy.types.Operator):
obj['wpt_display_type'] = obj.display_type obj['wpt_display_type'] = obj.display_type
obj.display_type = 'SOLID' obj.display_type = 'SOLID'
# Fix symmetry settings... Don't even restore these. Hopefully this can go away once T84520 is done
if obj.data.use_mirror_x:
obj.data.use_mirror_x = False
obj.data.use_mirror_vertex_group_x = True
obj.data.use_mirror_topology = False
# Store old shading settings in a dict custom property # Store old shading settings in a dict custom property
if('wpt' not in context.screen): if('wpt' not in context.screen):
context.screen['wpt'] = {} context.screen['wpt'] = {}