Commit: 806a561e23742a24b5b533f4f1410ea74178ca63
Author: Philipp Oeser
Date:   Sun Oct 18 15:06:27 2020 +0200
Branches: master
https://developer.blender.org/rB806a561e23742a24b5b533f4f1410ea74178ca63

Sculpt: Fix (unreported) assert getting trimming cursor depth option

It is a boolean, not an enum.

===================================================================

M       source/blender/editors/sculpt_paint/paint_mask.c

===================================================================

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)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to