|
@@ -631,17 +631,17 @@ class Actor(DirectObject, NodePath):
|
|
|
Actor.notify.warning("no lod named: %s" % (lodName))
|
|
Actor.notify.warning("no lod named: %s" % (lodName))
|
|
|
return
|
|
return
|
|
|
|
|
|
|
|
|
|
+ # remove the part
|
|
|
|
|
+ if (partBundleDict.has_key(partName)):
|
|
|
|
|
+ partBundleDict[partName].removeNode()
|
|
|
|
|
+ del(partBundleDict[partName])
|
|
|
|
|
+
|
|
|
# find the corresponding anim control dict
|
|
# find the corresponding anim control dict
|
|
|
animControlDict = self.__animControlDict.get(lodName)
|
|
animControlDict = self.__animControlDict.get(lodName)
|
|
|
if not animControlDict:
|
|
if not animControlDict:
|
|
|
Actor.notify.warning("no lod named: %s" % (lodName))
|
|
Actor.notify.warning("no lod named: %s" % (lodName))
|
|
|
return
|
|
return
|
|
|
|
|
|
|
|
- # remove the part
|
|
|
|
|
- if (partBundleDict.has_key(partName)):
|
|
|
|
|
- partBundleDict[partName].removeNode()
|
|
|
|
|
- del(partBundleDict[partName])
|
|
|
|
|
-
|
|
|
|
|
# remove the animations
|
|
# remove the animations
|
|
|
if (animControlDict.has_key(partName)):
|
|
if (animControlDict.has_key(partName)):
|
|
|
del(animControlDict[partName])
|
|
del(animControlDict[partName])
|