Add back Zach's fixes

This commit is contained in:
John Cote 2015-05-25 13:31:34 -04:00
parent 913f29b745
commit 85b8923d35

View file

@ -258,6 +258,10 @@ class DistributedPartyActivity(DistributedObject.DistributedObject):
self.signFlatWithNote.stash()
self.signTextLocator.stash()
def unloadSign(self):
self.sign.removeNode()
del self.sign
def loadLever(self):
self.lever = self.root.attachNewNode('%sLever' % self.activityName)
self.leverModel = self.party.defaultLeverModel.copyTo(self.lever)
@ -409,6 +413,7 @@ class DistributedPartyActivity(DistributedObject.DistributedObject):
self._disableCollisions()
self.signModel.removeNode()
del self.signModel
if hasattr(self, 'sign'):
self.sign.removeNode()
del self.sign
self.ignoreAll()