mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Revert "Patch by cfsworks: actor: On removePart, clean up the part's commonBundleHandle."
This reverts commit a4563fb342715bccd9a63aa320395f13abaace46. commonBundleHandle is not holding bundle for this part only. When two or more parts shares or have similar bundles - their bundles are merged. In these cases it is not correct to remove the commonBundleHandle for this parts.
This commit is contained in:
parent
e33cac03fe
commit
d74d6cb587
@ -1019,11 +1019,6 @@ class Actor(DirectObject, NodePath):
|
|||||||
if (partName in partDict):
|
if (partName in partDict):
|
||||||
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