mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
more fixes to oobeCull
This commit is contained in:
parent
05f577df6e
commit
22e6577ad1
@ -1892,11 +1892,13 @@ class ShowBase(DirectObject.DirectObject):
|
|||||||
|
|
||||||
# Tell the camera to cull from here instead of its own
|
# Tell the camera to cull from here instead of its own
|
||||||
# origin.
|
# origin.
|
||||||
self.camNode.setCullCenter(self.oobeCullFrustum)
|
for cam in base.camList:
|
||||||
|
cam.node().setCullCenter(self.oobeCullFrustum)
|
||||||
else:
|
else:
|
||||||
# Disable OOBE culling.
|
# Disable OOBE culling.
|
||||||
|
|
||||||
self.camNode.setCullCenter(NodePath())
|
for cam in base.camList:
|
||||||
|
cam.node().setCullCenter(NodePath())
|
||||||
self.oobeCullFrustum.removeNode()
|
self.oobeCullFrustum.removeNode()
|
||||||
self.oobeCullFrustum = None
|
self.oobeCullFrustum = None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user