Fix T98364: Remove improper OPTYPE_UNDO flags

Removed OPTYPE_UNDO flags from the swap brush colors and
sample color operators.  These types of operators are
not supposed to be undoable in the first place.  Also
memfile undo is too buggy for it.
blender-v3.2-release
Joseph Eagar 8 months ago
parent 0f47506cde
commit 511a08585d

@ -1 +1 @@
Subproject commit ebc3989630d18afe00624fc5e4bae6cc0de7a260
Subproject commit 71e0f87dd1ba4e0ed5f619b031045a428e534230

@ -1 +1 @@
Subproject commit 1c8e7f124d17b64ff05cbe179264ba7c7c3aa9fc
Subproject commit bcb71eea69a7b83c44112a5872ccd67cae96ec6f

@ -736,7 +736,7 @@ void PAINT_OT_sample_color(wmOperatorType *ot)
ot->poll = sample_color_poll;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->flag = OPTYPE_REGISTER;
/* properties */
PropertyRNA *prop;
@ -954,7 +954,7 @@ void PAINT_OT_brush_colors_flip(wmOperatorType *ot)
ot->poll = brush_colors_flip_poll;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->flag = OPTYPE_REGISTER;
}
void ED_imapaint_bucket_fill(struct bContext *C,

Loading…
Cancel
Save