mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Patch by cfsworks: actor: On removePart, clean up the part's commonBundleHandle.
This commit is contained in:
parent
47a66f0e54
commit
a4563fb342
@ -1022,6 +1022,11 @@ class Actor(DirectObject, NodePath):
|
|||||||
if (partDict.has_key(partName)):
|
if (partDict.has_key(partName)):
|
||||||
del(partDict[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"):
|
def hidePart(self, partName, lodName="lodRoot"):
|
||||||
"""
|
"""
|
||||||
Make the given part of the optionally given lod not render,
|
Make the given part of the optionally given lod not render,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user