Sculpt: Fix T102349: improperly aliased enum

PaintMaskFloodMode is supposed to be an alias
of eSelectOp.  paint_intern.h now includes
ED_select_utils.h and simply assigns the
relevent members of eSelectOp to PaintMaskFloodMode's
members.
This commit is contained in:
Joseph Eagar 2022-11-20 09:41:53 -08:00
parent 7193e5aa10
commit 03b7982301
Notes: blender-bot 2023-02-13 14:04:14 +01:00
Referenced by issue #102349, Sculpt Mode: Inverted Box Masking inverts mask instead of clearing mask
1 changed files with 5 additions and 3 deletions

View File

@ -13,6 +13,8 @@
#include "BLI_math.h"
#include "BLI_rect.h"
#include "ED_select_utils.h"
#include "DNA_scene_types.h"
#ifdef __cplusplus
@ -472,9 +474,9 @@ void PAINT_OT_hide_show(struct wmOperatorType *ot);
/* paint_mask.c */
typedef enum {
PAINT_MASK_FLOOD_VALUE,
PAINT_MASK_FLOOD_VALUE_INVERSE,
PAINT_MASK_INVERT,
PAINT_MASK_FLOOD_VALUE = SEL_OP_SUB,
PAINT_MASK_FLOOD_VALUE_INVERSE = SEL_OP_ADD,
PAINT_MASK_INVERT = SEL_OP_XOR,
} PaintMaskFloodMode;
void PAINT_OT_mask_flood_fill(struct wmOperatorType *ot);