From 7fbf03858e24497a713d049133d566f831677a16 Mon Sep 17 00:00:00 2001 From: lawnjelly Date: Wed, 23 Oct 2019 10:58:42 +0100 Subject: [PATCH] Disable culling of camera DOB --- lroom.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lroom.cpp b/lroom.cpp index f847e04..0813cf4 100644 --- a/lroom.cpp +++ b/lroom.cpp @@ -280,15 +280,8 @@ void LRoom::FinalizeVisibility(LRoomManager &manager) const LDob &dob = m_DOBs[n]; // don't cull the main camera - if (dob.m_ID_Spatial == manager.m_ID_camera) - continue; - -// Spatial * pSpat = dob.GetSpatial(); -// if (pSpat) -// { -// // all should be showing .. this is mostly a no op -// pSpat->show(); -// } + //if (dob.m_ID_Spatial == manager.m_ID_camera) + // continue; VisualInstance * pVI = dob.GetVI(); if (pVI) @@ -298,6 +291,13 @@ void LRoom::FinalizeVisibility(LRoomManager &manager) { mask = LRoom::LAYER_MASK_CAMERA | LRoom::LAYER_MASK_LIGHT; } + else + { + // special case + // don't cull the main camera + if (dob.m_ID_Spatial == manager.m_ID_camera) + mask = LRoom::LAYER_MASK_CAMERA | LRoom::LAYER_MASK_LIGHT; + } SoftShow(pVI, mask); // if (dob.m_bVisible)