|
@@ -1150,19 +1150,22 @@ class ShowBase(DirectObject.DirectObject):
|
|
|
|
|
|
|
|
# Assign each DisplayRegion shared by the camera to use
|
|
# Assign each DisplayRegion shared by the camera to use
|
|
|
# this cull frustum.
|
|
# this cull frustum.
|
|
|
- numDisplayRegions = self.camNode.getNumDisplayRegions()
|
|
|
|
|
- for d in range(0, numDisplayRegions):
|
|
|
|
|
- dr = self.camNode.getDisplayRegion(d)
|
|
|
|
|
- dr.setCullFrustum(pnode)
|
|
|
|
|
|
|
+
|
|
|
|
|
+ # Support for this is currently absent from Panda.
|
|
|
|
|
+## numDisplayRegions = self.camNode.getNumDisplayRegions()
|
|
|
|
|
+## for d in range(0, numDisplayRegions):
|
|
|
|
|
+## dr = self.camNode.getDisplayRegion(d)
|
|
|
|
|
+## dr.setCullFrustum(pnode)
|
|
|
else:
|
|
else:
|
|
|
# Disable OOBE culling.
|
|
# Disable OOBE culling.
|
|
|
|
|
|
|
|
# Assign each DisplayRegion shared by the camera to use
|
|
# Assign each DisplayRegion shared by the camera to use
|
|
|
# the default cull frustum, the camera itself.
|
|
# the default cull frustum, the camera itself.
|
|
|
- numDisplayRegions = self.camNode.getNumDisplayRegions()
|
|
|
|
|
- for d in range(0, numDisplayRegions):
|
|
|
|
|
- dr = self.camNode.getDisplayRegion(d)
|
|
|
|
|
- dr.setCullFrustum(self.camNode)
|
|
|
|
|
|
|
+
|
|
|
|
|
+## numDisplayRegions = self.camNode.getNumDisplayRegions()
|
|
|
|
|
+## for d in range(0, numDisplayRegions):
|
|
|
|
|
+## dr = self.camNode.getDisplayRegion(d)
|
|
|
|
|
+## dr.setCullFrustum(self.camNode)
|
|
|
|
|
|
|
|
self.oobeCullFrustum.removeNode()
|
|
self.oobeCullFrustum.removeNode()
|
|
|
self.oobeCullFrustum = None
|
|
self.oobeCullFrustum = None
|