Sculpt: Add global automasking options for all brushes

This adds the automasking options to the Sculpt Tool options in a way
that they affect all brushes. This is more convenient when working with
some of these options while switching brushes as they don't need to be
enabled/disabled per brush.
An automasking option is enabled if it is enabled in the brush or in the
sculpt options.

Reviewed By: jbakker

Differential Revision: https://developer.blender.org/D7304
This commit is contained in:
Pablo Dobarro
2020-04-02 16:56:05 +02:00
parent e276558a50
commit 1f745e2c72
4 changed files with 66 additions and 19 deletions

View File

@@ -905,6 +905,13 @@ class VIEW3D_PT_sculpt_options(Panel, View3DPaintPanel):
col = flow.column()
col.prop(sculpt, "use_deform_only")
col = flow.column()
col.separator()
col.prop(sculpt, "use_automasking_topology")
col.prop(sculpt, "use_automasking_face_sets")
col.prop(sculpt, "use_automasking_boundary_edges")
col.prop(sculpt, "use_automasking_boundary_face_sets")
class VIEW3D_PT_sculpt_options_gravity(Panel, View3DPaintPanel):
bl_context = ".sculpt_mode" # dot on purpose (access from topbar)