Browse Source

Fixed showAllDescendants

Mark Mine 23 years ago
parent
commit
4f8ebf4512

+ 1 - 1
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:

+ 1 - 2
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()