[Bf-blender-cvs] [c018cea6803] blender2.8: GP: Show all objects sharing data in edit modes

Antonioya noreply at git.blender.org
Wed Nov 7 16:13:54 CET 2018


Commit: c018cea6803beac5e82a6a3770fa86f2d7138300
Author: Antonioya
Date:   Wed Nov 7 16:13:21 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBc018cea6803beac5e82a6a3770fa86f2d7138300

GP: Show all objects sharing data in edit modes

Only need hide particle objects

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

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 9308bdbd084..1ec060e12f8 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -563,8 +563,8 @@ void GPENCIL_cache_populate(void *vedata, Object *ob)
 			stl->storage->reset_cache = false;
 		}
 
-		/* is edit mode only current object, not instances */
-		if ((draw_ctx->obact != ob) && GPENCIL_ANY_EDIT_MODE(gpd)) {
+		/* is edit mode only current object, not particle instances */
+		if ((ob->base_flag & BASE_FROMDUPLI) && GPENCIL_ANY_EDIT_MODE(gpd)) {
 			return;
 		}



More information about the Bf-blender-cvs mailing list