diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-19 18:31:07 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-19 18:31:53 +0300 |
commit | c1612ca114df6d4c8b992808fb05ec03199392c1 (patch) | |
tree | 33f86aa46b35bcd64e0f2bf23027933731583a98 /source/blender/draw/engines/external/external_engine.c | |
parent | ee44f8a289a2fe06eda88303b9d76c9288541adc (diff) |
Fix T67471: hidden particle emitter occludes in Cycles rendered viewport
Diffstat (limited to 'source/blender/draw/engines/external/external_engine.c')
-rw-r--r-- | source/blender/draw/engines/external/external_engine.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/draw/engines/external/external_engine.c b/source/blender/draw/engines/external/external_engine.c index f6646ca575e..704e16b2907 100644 --- a/source/blender/draw/engines/external/external_engine.c +++ b/source/blender/draw/engines/external/external_engine.c @@ -28,6 +28,8 @@ #include "DNA_screen_types.h" #include "DNA_view3d_types.h" +#include "BKE_object.h" + #include "ED_screen.h" #include "GPU_matrix.h" @@ -156,7 +158,8 @@ static void external_cache_populate(void *vedata, Object *ob) { EXTERNAL_StorageList *stl = ((EXTERNAL_Data *)vedata)->stl; - if (!DRW_object_is_renderable(ob)) { + if (!(DRW_object_is_renderable(ob) && + DRW_object_visibility_in_active_context(ob) & OB_VISIBLE_SELF)) { return; } |