[Bf-blender-cvs] [6b924d1b44a] greasepencil-object: Fix error when init drawing

Antonio Vazquez noreply at git.blender.org
Sun Feb 11 12:36:35 CET 2018


Commit: 6b924d1b44a7b9087e34a7fe9679a20e9e1cc5f5
Author: Antonio Vazquez
Date:   Sun Feb 11 12:36:20 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB6b924d1b44a7b9087e34a7fe9679a20e9e1cc5f5

Fix error when init drawing

The object is already activated, so if reactivate, the mode is missing.

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index 5b09c3a5023..5ed3ced93b0 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -2500,7 +2500,6 @@ static int gpencil_draw_invoke(bContext *C, wmOperator *op, const wmEvent *event
 			/* set workspace mode */
 			workspace->object_mode_restore = workspace->object_mode;
 			workspace->object_mode = OB_MODE_GPENCIL_PAINT;
-			ED_object_base_activate(C, view_layer->basact); // XXX
 			/* redraw mode on screen */
 			WM_event_add_notifier(C, NC_SCENE | ND_MODE, NULL);
 		}



More information about the Bf-blender-cvs mailing list