From a4563fb342715bccd9a63aa320395f13abaace46 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Wed, 4 Dec 2013 10:28:16 +0000 Subject: [PATCH] Patch by cfsworks: actor: On removePart, clean up the part's commonBundleHandle. --- direct/src/actor/Actor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/direct/src/actor/Actor.py b/direct/src/actor/Actor.py index 253f946fe3..a5ecbaf1cb 100644 --- a/direct/src/actor/Actor.py +++ b/direct/src/actor/Actor.py @@ -1022,6 +1022,11 @@ class Actor(DirectObject, NodePath): if (partDict.has_key(partName)): del(partDict[partName]) + # remove the bundle handle, in case this part is ever + # loaded again in the future + if partName in self.__commonBundleHandles: + del self.__commonBundleHandles[partName] + def hidePart(self, partName, lodName="lodRoot"): """ Make the given part of the optionally given lod not render,