mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Fixed? bounding box computation error
This commit is contained in:
parent
2fc1dfb8a3
commit
24b2cc8203
@ -292,7 +292,7 @@ class DirectCameraControl(PandaObject):
|
||||
self.cqEntries = self.cqEntries[1:] + self.cqEntries[:1]
|
||||
# Filter out object's under camera
|
||||
node = entry.getIntoNode()
|
||||
nodePath = render.findPathDownTo(node)
|
||||
nodePath = render.findPathTo(node)
|
||||
if direct.camera not in nodePath.getAncestry():
|
||||
# Compute hit point
|
||||
# KEH: use current display region ray
|
||||
|
@ -235,7 +235,8 @@ class DirectBoundingBox:
|
||||
self.lines = self.createBBoxLines()
|
||||
|
||||
def computeBounds(self):
|
||||
self.bounds = self.nodePath.getBounds()
|
||||
#self.bounds = self.nodePath.getBounds()
|
||||
self.bounds = self.getBounds()
|
||||
if self.bounds.isEmpty() or self.bounds.isInfinite():
|
||||
self.center = Point3(0)
|
||||
self.radius = 1.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user