Fix T67471: hidden particle emitter occludes in Cycles rendered viewport
This commit is contained in:
parent
ee44f8a289
commit
c1612ca114
Notes:
blender-bot
2023-02-14 11:35:46 +01:00
Referenced by issue #67471, Hidden Particle emitter occludes overlays in Cycles viewport render.
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue