From 22e6577ad1f199ef24520604d54593ba8d1257c4 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 13 Nov 2008 19:14:58 +0000 Subject: [PATCH] more fixes to oobeCull --- direct/src/showbase/ShowBase.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/direct/src/showbase/ShowBase.py b/direct/src/showbase/ShowBase.py index 1a9829eb73..8ff2ae125b 100644 --- a/direct/src/showbase/ShowBase.py +++ b/direct/src/showbase/ShowBase.py @@ -1892,11 +1892,13 @@ class ShowBase(DirectObject.DirectObject): # Tell the camera to cull from here instead of its own # origin. - self.camNode.setCullCenter(self.oobeCullFrustum) + for cam in base.camList: + cam.node().setCullCenter(self.oobeCullFrustum) else: # Disable OOBE culling. - self.camNode.setCullCenter(NodePath()) + for cam in base.camList: + cam.node().setCullCenter(NodePath()) self.oobeCullFrustum.removeNode() self.oobeCullFrustum = None