mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
actor now has a nicer function than flush for clearing combined actors
This commit is contained in:
parent
2229f81ecf
commit
6f36914330
@ -450,16 +450,19 @@ class Actor(DirectObject, NodePath):
|
|||||||
self.notify.warning("called actor.removeNode() on %s without calling cleanup()" % self.getName())
|
self.notify.warning("called actor.removeNode() on %s without calling cleanup()" % self.getName())
|
||||||
NodePath.removeNode(self)
|
NodePath.removeNode(self)
|
||||||
|
|
||||||
def flush(self):
|
def clearPythonData(self):
|
||||||
"""
|
|
||||||
Actor flush function
|
|
||||||
"""
|
|
||||||
self.__partBundleDict = {}
|
self.__partBundleDict = {}
|
||||||
self.__subpartDict = {}
|
self.__subpartDict = {}
|
||||||
self.__sortedLODNames = []
|
self.__sortedLODNames = []
|
||||||
self.__animControlDict = {}
|
self.__animControlDict = {}
|
||||||
self.__controlJoints = {}
|
self.__controlJoints = {}
|
||||||
|
|
||||||
|
def flush(self):
|
||||||
|
"""
|
||||||
|
Actor flush function
|
||||||
|
"""
|
||||||
|
self.clearPythonData()
|
||||||
|
|
||||||
if self.__LODNode and (not self.__LODNode.isEmpty()):
|
if self.__LODNode and (not self.__LODNode.isEmpty()):
|
||||||
self.__LODNode.removeNode()
|
self.__LODNode.removeNode()
|
||||||
self.__LODNode = None
|
self.__LODNode = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user