diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2020-10-18 16:06:27 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2020-10-18 16:06:27 +0300 |
commit | 806a561e23742a24b5b533f4f1410ea74178ca63 (patch) | |
tree | 2dc92dcdefbfe3ba7620963b1f3b42cf2f5b3468 /source/blender/editors | |
parent | e1cd6fae342519048819231137f25cd8b6d2ee45 (diff) |
Sculpt: Fix (unreported) assert getting trimming cursor depth option
It is a boolean, not an enum.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_mask.c | 2 |
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) |