diff --git a/direct/src/directtools/DirectCameraControl.py b/direct/src/directtools/DirectCameraControl.py index bd2bbbeaf3..53e7974e9c 100644 --- a/direct/src/directtools/DirectCameraControl.py +++ b/direct/src/directtools/DirectCameraControl.py @@ -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 diff --git a/direct/src/directtools/DirectSelection.py b/direct/src/directtools/DirectSelection.py index fdf840a2b3..bf10dc4a8f 100644 --- a/direct/src/directtools/DirectSelection.py +++ b/direct/src/directtools/DirectSelection.py @@ -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