Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Eagar <joeedh@gmail.com>2022-04-25 22:15:48 +0300
committerJoseph Eagar <joeedh@gmail.com>2022-04-25 22:15:48 +0300
commit296d734344139db6bc092082eaf6ee94458d5506 (patch)
treece1135fa94ac6e4885a554e963bc12b9de416dc3
parent185d9627b3156d30596e19f611941c1ed0e88e5b (diff)
Sculpt: Remove hardcoded setting of
auto-iteration property in mask filter Note: Auto-iteration is still set manually for increase/decrease contrast. These should probably become their own operators.
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py8
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_filter_mask.c2
2 files changed, 1 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 81ccdd82dd8..9aebb4427d2 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -3177,19 +3177,15 @@ class VIEW3D_MT_mask(Menu):
props = layout.operator("sculpt.mask_filter", text='Smooth Mask')
props.filter_type = 'SMOOTH'
- props.auto_iteration_count = True
props = layout.operator("sculpt.mask_filter", text='Sharpen Mask')
props.filter_type = 'SHARPEN'
- props.auto_iteration_count = True
props = layout.operator("sculpt.mask_filter", text='Grow Mask')
props.filter_type = 'GROW'
- props.auto_iteration_count = True
props = layout.operator("sculpt.mask_filter", text='Shrink Mask')
props.filter_type = 'SHRINK'
- props.auto_iteration_count = True
props = layout.operator("sculpt.mask_filter", text='Increase Contrast')
props.filter_type = 'CONTRAST_INCREASE'
@@ -5392,16 +5388,12 @@ class VIEW3D_MT_sculpt_mask_edit_pie(Menu):
op.value = 0.0
op = pie.operator("sculpt.mask_filter", text='Smooth Mask')
op.filter_type = 'SMOOTH'
- op.auto_iteration_count = True
op = pie.operator("sculpt.mask_filter", text='Sharpen Mask')
op.filter_type = 'SHARPEN'
- op.auto_iteration_count = True
op = pie.operator("sculpt.mask_filter", text='Grow Mask')
op.filter_type = 'GROW'
- op.auto_iteration_count = True
op = pie.operator("sculpt.mask_filter", text='Shrink Mask')
op.filter_type = 'SHRINK'
- op.auto_iteration_count = True
op = pie.operator("sculpt.mask_filter", text='Increase Contrast')
op.filter_type = 'CONTRAST_INCREASE'
op.auto_iteration_count = False
diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_mask.c b/source/blender/editors/sculpt_paint/sculpt_filter_mask.c
index 172c1f44e47..ea3f56d0859 100644
--- a/source/blender/editors/sculpt_paint/sculpt_filter_mask.c
+++ b/source/blender/editors/sculpt_paint/sculpt_filter_mask.c
@@ -296,7 +296,7 @@ void SCULPT_OT_mask_filter(struct wmOperatorType *ot)
RNA_def_boolean(
ot->srna,
"auto_iteration_count",
- false,
+ true,
"Auto Iteration Count",
"Use a automatic number of iterations based on the number of vertices of the sculpt");
}