From 24b2cc820373d4249e069d536bb830edf715d665 Mon Sep 17 00:00:00 2001 From: Mark Mine Date: Tue, 14 May 2002 21:49:01 +0000 Subject: [PATCH] Fixed? bounding box computation error --- direct/src/directtools/DirectCameraControl.py | 2 +- direct/src/directtools/DirectSelection.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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