From 4cbafba04b95a73900bec589375d7686b25624b1 Mon Sep 17 00:00:00 2001 From: Joseph Eagar Date: Fri, 30 Sep 2022 14:56:06 -0700 Subject: Sculpt: Fix T101430: Curve shown improperly in mask from cavity redo --- source/blender/editors/sculpt_paint/sculpt_ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/blender/editors/sculpt_paint/sculpt_ops.c b/source/blender/editors/sculpt_paint/sculpt_ops.c index 4e280e1d0a0..ea2261559ef 100644 --- a/source/blender/editors/sculpt_paint/sculpt_ops.c +++ b/source/blender/editors/sculpt_paint/sculpt_ops.c @@ -1172,7 +1172,7 @@ static void cavity_bake_ui(bContext *C, wmOperator *op) uiLayoutSetPropSep(layout, true); uiLayoutSetPropDecorate(layout, false); - bool use_curve; + bool use_curve = false; if (!sd || !RNA_boolean_get(op->ptr, "use_automask_settings")) { uiItemR(layout, op->ptr, "mix_mode", 0, NULL, ICON_NONE); @@ -1193,7 +1193,7 @@ static void cavity_bake_ui(bContext *C, wmOperator *op) uiItemR(layout, op->ptr, "mix_factor", 0, NULL, ICON_NONE); uiItemR(layout, op->ptr, "use_automask_settings", 0, NULL, ICON_NONE); - use_curve = RNA_boolean_get(&sculpt_ptr, "use_automasking_custom_cavity_curve"); + use_curve = false; } if (use_curve) { -- cgit v1.2.3