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