[Bf-blender-cvs] [8f4b7d706b0] master: Sculpt: disable undo flag for sculpt mask lasso

Campbell Barton noreply at git.blender.org
Thu Jan 31 08:48:19 CET 2019


Commit: 8f4b7d706b0e9d032ee2c5fff6467bbd68763ba0
Author: Campbell Barton
Date:   Thu Jan 31 18:48:59 2019 +1100
Branches: master
https://developer.blender.org/rB8f4b7d706b0e9d032ee2c5fff6467bbd68763ba0

Sculpt: disable undo flag for sculpt mask lasso

While this is harmless, it did cause T55399 in the past.

Sculpt adds it's own undo steps, so don't request the operator type
to do it too.

This is consistent with other sculpt operators.

===================================================================

M	source/blender/editors/sculpt_paint/paint_mask.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/paint_mask.c b/source/blender/editors/sculpt_paint/paint_mask.c
index 3f193de9031..ca2c5044e42 100644
--- a/source/blender/editors/sculpt_paint/paint_mask.c
+++ b/source/blender/editors/sculpt_paint/paint_mask.c
@@ -535,7 +535,7 @@ void PAINT_OT_mask_lasso_gesture(wmOperatorType *ot)
 
 	ot->poll = sculpt_mode_poll;
 
-	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
+	ot->flag = OPTYPE_REGISTER;
 
 	/* properties */
 	WM_operator_properties_gesture_lasso(ot);



More information about the Bf-blender-cvs mailing list