initial support for 'occlude background geometry' in weight paint mode.
Only support mouse vertex select at the moment.
This commit is contained in:
@@ -70,7 +70,8 @@ class VIEW3D_HT_header(Header):
|
||||
row.prop(toolsettings.particle_edit, "select_mode", text="", expand=True)
|
||||
|
||||
# Occlude geometry
|
||||
if view.viewport_shade not in {'BOUNDBOX', 'WIREFRAME'} and (mode == 'PARTICLE_EDIT' or (mode == 'EDIT' and obj.type == 'MESH')):
|
||||
if ((view.viewport_shade not in {'BOUNDBOX', 'WIREFRAME'} and (mode == 'PARTICLE_EDIT' or (mode == 'EDIT' and obj.type == 'MESH'))) or
|
||||
(mode == 'WEIGHT_PAINT' and obj.data.use_paint_mask_vertex)):
|
||||
row.prop(view, "use_occlude_geometry", text="")
|
||||
|
||||
# Proportional editing
|
||||
|
||||
Reference in New Issue
Block a user