Paint: disable undo when changing the brush or it's size
Causes undo push in sculpt mode, see: T71434
This commit is contained in:
@@ -184,7 +184,7 @@ static void BRUSH_OT_scale_size(wmOperatorType *ot)
|
|||||||
ot->exec = brush_scale_size_exec;
|
ot->exec = brush_scale_size_exec;
|
||||||
|
|
||||||
/* flags */
|
/* flags */
|
||||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
ot->flag = 0;
|
||||||
|
|
||||||
RNA_def_float(ot->srna, "scalar", 1, 0, 2, "Scalar", "Factor to scale brush size by", 0, 2);
|
RNA_def_float(ot->srna, "scalar", 1, 0, 2, "Scalar", "Factor to scale brush size by", 0, 2);
|
||||||
}
|
}
|
||||||
@@ -505,7 +505,7 @@ static void PAINT_OT_brush_select(wmOperatorType *ot)
|
|||||||
ot->exec = brush_select_exec;
|
ot->exec = brush_select_exec;
|
||||||
|
|
||||||
/* flags */
|
/* flags */
|
||||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
ot->flag = 0;
|
||||||
|
|
||||||
/* props */
|
/* props */
|
||||||
/* All properties are hidden, so as not to show the redo panel. */
|
/* All properties are hidden, so as not to show the redo panel. */
|
||||||
|
Reference in New Issue
Block a user