actor: On removePart, clean up the part's commonBundleHandle.

This commit is contained in:
Sam Edwards 2013-10-30 00:30:28 -06:00
parent 0c4cfc37b5
commit 0c2ea25813
1 changed files with 5 additions and 0 deletions

View File

@ -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,