[Bf-blender-cvs] [c85edc8bcc7] greasepencil-object: Fix Undo problem with color picker

Antonio Vazquez noreply at git.blender.org
Mon Jan 29 19:48:21 CET 2018


Commit: c85edc8bcc7e7ab58c15c57497908e0aabd4143b
Author: Antonio Vazquez
Date:   Mon Jan 29 19:48:11 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rBc85edc8bcc7e7ab58c15c57497908e0aabd4143b

Fix Undo problem with color picker

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

M	source/blender/editors/gpencil/gpencil_colorpick.c

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

diff --git a/source/blender/editors/gpencil/gpencil_colorpick.c b/source/blender/editors/gpencil/gpencil_colorpick.c
index 05c62e5c885..4bae928791f 100644
--- a/source/blender/editors/gpencil/gpencil_colorpick.c
+++ b/source/blender/editors/gpencil/gpencil_colorpick.c
@@ -552,5 +552,5 @@ void GPENCIL_OT_colorpick(wmOperatorType *ot)
 	ot->cancel = gpencil_colorpick_cancel;
 
 	/* flags */
-	ot->flag = OPTYPE_BLOCKING;
+	ot->flag = OPTYPE_UNDO | OPTYPE_BLOCKING;
 }



More information about the Bf-blender-cvs mailing list