mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
improve cleanup
This commit is contained in:
parent
da98027b0a
commit
eceddf13ee
@ -289,16 +289,22 @@ class Actor(PandaObject, NodePath):
|
||||
Actor cleanup function
|
||||
"""
|
||||
self.stop()
|
||||
del self.__partBundleDict
|
||||
del self.__animControlDict
|
||||
|
||||
self.__partBundleDict = {}
|
||||
self.__animControlDict = {}
|
||||
self.__controlJoints = {}
|
||||
|
||||
self.__geomNode.removeNode()
|
||||
del self.__geomNode
|
||||
|
||||
if self.__LODNode:
|
||||
self.__LODNode.removeNode()
|
||||
del self.__LODNode
|
||||
self.__LODNode = None
|
||||
|
||||
self.__hasLOD = 0
|
||||
|
||||
if not self.isEmpty():
|
||||
self.removeNode()
|
||||
|
||||
# accessing
|
||||
|
||||
def getAnimControlDict(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user