From 4f8ebf4512fe5c9c789bcc4568ef20aa86fcf921 Mon Sep 17 00:00:00 2001 From: Mark Mine Date: Sat, 7 Dec 2002 01:08:22 +0000 Subject: [PATCH] Fixed showAllDescendants --- direct/src/directtools/DirectSession.py | 2 +- direct/src/extensions/NodePath-extensions.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/direct/src/directtools/DirectSession.py b/direct/src/directtools/DirectSession.py index 36e5022ae7..8322b83567 100644 --- a/direct/src/directtools/DirectSession.py +++ b/direct/src/directtools/DirectSession.py @@ -609,7 +609,7 @@ class DirectSession(PandaObject): def showAllDescendants(self, nodePath = render): """ Show the level and its descendants """ nodePath.showAllDescendants() - nodePath.hideCollisionSolids() + nodePath.hideCS() def upAncestry(self): if self.ancestry: diff --git a/direct/src/extensions/NodePath-extensions.py b/direct/src/extensions/NodePath-extensions.py index db5c9a7dd6..840fbe19c5 100644 --- a/direct/src/extensions/NodePath-extensions.py +++ b/direct/src/extensions/NodePath-extensions.py @@ -72,8 +72,7 @@ def showAllDescendants(self): """Show the node path and all its children""" - if self.hasArcs(): - self.show() + self.show() for child in self.getChildrenAsList(): child.showAllDescendants()