Sculpt: Add comment explaining PaintMaskFloodMode

This commit is contained in:
Joseph Eagar 2022-11-20 09:53:29 -08:00
parent b041678028
commit afb7da5538
1 changed files with 7 additions and 0 deletions

View File

@ -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,