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:
authorPhilipp Oeser <info@graphics-engineer.com>2020-10-18 16:06:27 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-10-18 16:06:27 +0300
commit806a561e23742a24b5b533f4f1410ea74178ca63 (patch)
tree2dc92dcdefbfe3ba7620963b1f3b42cf2f5b3468 /source/blender/editors/sculpt_paint
parente1cd6fae342519048819231137f25cd8b6d2ee45 (diff)
Sculpt: Fix (unreported) assert getting trimming cursor depth option
It is a boolean, not an enum.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/paint_mask.c2
1 files changed, 1 insertions, 1 deletions
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)