[Bf-blender-cvs] [834942d121e] greasepencil-object: GPencil: Hide selecction outline when play animation

Antonioya noreply at git.blender.org
Thu Feb 28 16:17:09 CET 2019


Commit: 834942d121e20dc0e5763f9792e980c810ef05e0
Author: Antonioya
Date:   Thu Feb 28 11:45:23 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rB834942d121e20dc0e5763f9792e980c810ef05e0

GPencil: Hide selecction outline when play animation

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

M	source/blender/draw/engines/gpencil/gpencil_engine.c

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

diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c
index 2ce7a53e968..3daf1320d85 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -4,6 +4,7 @@
  * as published by the Free Software Foundation; either version 2
  * of the License, or (at your option) any later version.
  *
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
@@ -986,7 +987,7 @@ void GPENCIL_draw_scene(void *ved)
 				/* active select flag and selection color */
 				stl->storage->do_select = ((ob->base_flag & BASE_SELECTED) &&
 										   (ob->mode == OB_MODE_OBJECT) &&
-										   (!is_render));
+										   (!is_render) && (!playing));
 
 				/* if active object is not object mode, disable for all objects */
 				if ((draw_ctx->obact) && (draw_ctx->obact->mode != OB_MODE_OBJECT)) {



More information about the Bf-blender-cvs mailing list