diff options
author | Joseph Eagar <joeedh@gmail.com> | 2022-09-29 09:21:56 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-09-29 09:21:56 +0300 |
commit | bbc69563d0704a8269318d8699e7c2bf4edc91c2 (patch) | |
tree | 7d9d0aa1f35597442f633c3b2d88ff4d2df704d4 /release/scripts/startup/bl_ui/space_view3d_toolbar.py | |
parent | a4ff106c5864343dd40cc945a5bdc74ed22d4274 (diff) |
Sculpt: Normal-based automasking modes
Two new normal-based automasking modes.
The first mode, "brush", compares vertex normals with the initial
normal at the beginning of the brush stroke.
The second, "view", compares vertex normals with the view normal.
If "occlusion" is on then rays will be shot from each vertex to test
if it is occluded by other geometry (note: this can be very slow).\
Only geometry inside the sculpt mesh is considered.
Each mode has an associated angular limit and a falloff.
Reviewed by: Julien Kaspar and Jeroen Bakker
Differential Revision: https://developer.blender.org/D15297
Ref D15297
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d_toolbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index d18b75e78af..6946ab54ca7 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -974,6 +974,21 @@ class VIEW3D_PT_sculpt_options(Panel, View3DPaintPanel): col.prop(sculpt, "use_automasking_boundary_face_sets", text="Face Sets Boundary") col.prop(sculpt, "use_automasking_cavity", text="Cavity") col.prop(sculpt, "use_automasking_cavity_inverted", text="Cavity (Inverted)") + col.prop(sculpt, "use_automasking_start_normal", text="Area Normal") + col.prop(sculpt, "use_automasking_view_normal", text="View Normal") + + if sculpt.use_automasking_start_normal: + col.separator() + + col.prop(sculpt, "automasking_start_normal_limit") + col.prop(sculpt, "automasking_start_normal_falloff") + + if sculpt.use_automasking_view_normal: + col.separator() + + col.prop(sculpt, "use_automasking_view_occlusion", text="Occlusion") + col.prop(sculpt, "automasking_view_normal_limit") + col.prop(sculpt, "automasking_view_normal_falloff") col.separator() col.prop(sculpt.brush, "automasking_boundary_edges_propagation_steps") |