From 7d0c1420c2b248b4031d13ed889fe72dc7334a1c Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 11 Dec 2014 16:27:51 +0100 Subject: [PATCH] Bypass view frustum cull entirely when camera has OmniBV --- panda/src/display/graphicsEngine.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/panda/src/display/graphicsEngine.cxx b/panda/src/display/graphicsEngine.cxx index db53b323e2..849e9efb4f 100644 --- a/panda/src/display/graphicsEngine.cxx +++ b/panda/src/display/graphicsEngine.cxx @@ -41,6 +41,7 @@ #include "bamCache.h" #include "cullableObject.h" #include "geomVertexArrayData.h" +#include "omniBoundingVolume.h" #include "vertexDataSaveFile.h" #include "vertexDataBook.h" #include "vertexDataPage.h" @@ -1212,7 +1213,8 @@ do_cull(CullHandler *cull_handler, SceneSetup *scene_setup, PT(BoundingVolume) bv = scene_setup->get_cull_bounds(); if (bv != (BoundingVolume *)NULL && - bv->is_of_type(GeometricBoundingVolume::get_class_type())) { + bv->is_of_type(GeometricBoundingVolume::get_class_type()) && + !bv->is_of_type(OmniBoundingVolume::get_class_type())) { // Transform it into the appropriate coordinate space. PT(GeometricBoundingVolume) local_frustum; local_frustum = DCAST(GeometricBoundingVolume, bv->make_copy());