mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
ZAC: replaced faulty cleanup code with removeChildren call. Should be cleaner
This commit is contained in:
parent
d0db2325af
commit
531a22f22b
@ -468,10 +468,9 @@ class Actor(DirectObject, NodePath):
|
||||
self.__LODNode = None
|
||||
|
||||
# remove geom node and all its children
|
||||
for i in xrange (0, self.__geomNode.getNumChildren()):
|
||||
child = self.__geomNode.getChild(i)
|
||||
child.removeNode()
|
||||
|
||||
self.__geomNode.removeChildren()
|
||||
self.__geomNode.removeNode()
|
||||
|
||||
self.__hasLOD = 0
|
||||
|
||||
# accessing
|
||||
|
Loading…
x
Reference in New Issue
Block a user