From 6f36914330e7023f99acd30236d8e6bf32b2103e Mon Sep 17 00:00:00 2001 From: Zachary Pavlov Date: Mon, 22 Jan 2007 22:28:42 +0000 Subject: [PATCH] actor now has a nicer function than flush for clearing combined actors --- direct/src/actor/Actor.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/direct/src/actor/Actor.py b/direct/src/actor/Actor.py index fad514628e..dbc524d1c8 100644 --- a/direct/src/actor/Actor.py +++ b/direct/src/actor/Actor.py @@ -450,15 +450,18 @@ class Actor(DirectObject, NodePath): self.notify.warning("called actor.removeNode() on %s without calling cleanup()" % self.getName()) NodePath.removeNode(self) - def flush(self): - """ - Actor flush function - """ + def clearPythonData(self): self.__partBundleDict = {} self.__subpartDict = {} self.__sortedLODNames = [] self.__animControlDict = {} self.__controlJoints = {} + + def flush(self): + """ + Actor flush function + """ + self.clearPythonData() if self.__LODNode and (not self.__LODNode.isEmpty()): self.__LODNode.removeNode()