mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
Fixed showAllDescendants
This commit is contained in:
parent
0c99328347
commit
4f8ebf4512
@ -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:
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user