Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-11-07 18:13:21 +0300
committerAntonioya <blendergit@gmail.com>2018-11-07 18:13:49 +0300
commitc018cea6803beac5e82a6a3770fa86f2d7138300 (patch)
tree46f97d478ca71bc441cc093fce5a61423f9a78e4
parent9a38526be04bddd99565172165a2a49b50019e54 (diff)
GP: Show all objects sharing data in edit modes
Only need hide particle objects
-rw-r--r--source/blender/draw/engines/gpencil/gpencil_engine.c4
1 files changed, 2 insertions, 2 deletions
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;
}