From 806a561e23742a24b5b533f4f1410ea74178ca63 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Sun, 18 Oct 2020 15:06:27 +0200 Subject: Sculpt: Fix (unreported) assert getting trimming cursor depth option It is a boolean, not an enum. --- source/blender/editors/sculpt_paint/paint_mask.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/sculpt_paint') diff --git a/source/blender/editors/sculpt_paint/paint_mask.c b/source/blender/editors/sculpt_paint/paint_mask.c index cfb73153371..8c912290997 100644 --- a/source/blender/editors/sculpt_paint/paint_mask.c +++ b/source/blender/editors/sculpt_paint/paint_mask.c @@ -1214,7 +1214,7 @@ static void sculpt_gesture_init_trim_properties(SculptGestureContext *sgcontext, trim_operation->op.sculpt_gesture_end = sculpt_gesture_trim_end; trim_operation->mode = RNA_enum_get(op->ptr, "trim_mode"); - trim_operation->use_cursor_depth = RNA_enum_get(op->ptr, "use_cursor_depth"); + trim_operation->use_cursor_depth = RNA_boolean_get(op->ptr, "use_cursor_depth"); } static void sculpt_trim_gesture_operator_properties(wmOperatorType *ot) -- cgit v1.2.3