Browse Source

more fixes to oobeCull

David Rose 17 năm trước cách đây
mục cha
commit
22e6577ad1
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      direct/src/showbase/ShowBase.py

+ 4 - 2
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