From d74d6cb58774a536d75ff2c41303d1e8d6279d92 Mon Sep 17 00:00:00 2001 From: deflected Date: Mon, 2 Mar 2015 16:03:48 +0200 Subject: [PATCH] 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. --- direct/src/actor/Actor.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/direct/src/actor/Actor.py b/direct/src/actor/Actor.py index 60bd7df8dc..8fc6557cf4 100644 --- a/direct/src/actor/Actor.py +++ b/direct/src/actor/Actor.py @@ -1019,11 +1019,6 @@ class Actor(DirectObject, NodePath): if (partName in partDict): 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,