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.
This commit is contained in:
parent
0f47506cde
commit
511a08585d
Notes:
blender-bot
2023-10-09 05:41:42 +02:00
Referenced by issue #98364, Sculpt Paint: Swap Colors on high density mesh causes short freeze Referenced by issue #107272, Sample color operator options no longer shown Referenced by issue #113417, Missing Sample Merged options using color picker
|
@ -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…
Reference in New Issue