diff options
author | Antonioya <blendergit@gmail.com> | 2018-11-07 18:13:21 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-11-07 18:13:49 +0300 |
commit | c018cea6803beac5e82a6a3770fa86f2d7138300 (patch) | |
tree | 46f97d478ca71bc441cc093fce5a61423f9a78e4 /source | |
parent | 9a38526be04bddd99565172165a2a49b50019e54 (diff) |
GP: Show all objects sharing data in edit modes
Only need hide particle objects
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_engine.c | 4 |
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; } |