ZAC: replaced faulty cleanup code with removeChildren call. Should be cleaner

This commit is contained in:
Greg Wiatroski 2007-02-20 22:08:03 +00:00
parent d0db2325af
commit 531a22f22b

View File

@ -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