[Bf-blender-cvs] [afb7da5538b] master: Sculpt: Add comment explaining PaintMaskFloodMode
Joseph Eagar
noreply at git.blender.org
Sun Nov 20 18:53:52 CET 2022
Commit: afb7da5538bd1efba04870598afdfb5f6aa3bf9a
Author: Joseph Eagar
Date: Sun Nov 20 09:53:29 2022 -0800
Branches: master
https://developer.blender.org/rBafb7da5538bd1efba04870598afdfb5f6aa3bf9a
Sculpt: Add comment explaining PaintMaskFloodMode
===================================================================
M source/blender/editors/sculpt_paint/paint_intern.h
===================================================================
diff --git a/source/blender/editors/sculpt_paint/paint_intern.h b/source/blender/editors/sculpt_paint/paint_intern.h
index c830823a1ff..8a2c6955679 100644
--- a/source/blender/editors/sculpt_paint/paint_intern.h
+++ b/source/blender/editors/sculpt_paint/paint_intern.h
@@ -473,6 +473,13 @@ void PAINT_OT_hide_show(struct wmOperatorType *ot);
/* paint_mask.c */
+/* The gesture API doesn't write to this enum type,
+ * it writes to eSelectOp from ED_select_utils.h.
+ * We must thus map the modes here to the desired
+ * eSelectOp modes.
+ *
+ * Fixes T102349.
+ */
typedef enum {
PAINT_MASK_FLOOD_VALUE = SEL_OP_SUB,
PAINT_MASK_FLOOD_VALUE_INVERSE = SEL_OP_ADD,
More information about the Bf-blender-cvs
mailing list