From 6d2fa2fcb2de3de3caa762894a05a60415dc43a6 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Wed, 3 Oct 2007 22:44:41 +0000 Subject: [PATCH] added getDisableEvent() --- direct/src/distributed/DistributedObject.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/direct/src/distributed/DistributedObject.py b/direct/src/distributed/DistributedObject.py index 198273ea2a..6b022f7a8e 100644 --- a/direct/src/distributed/DistributedObject.py +++ b/direct/src/distributed/DistributedObject.py @@ -185,6 +185,9 @@ class DistributedObject(DistributedObjectBase, EnforcesCalldowns): self.disableAndAnnounce() self.delete() + def getDisableEvent(self): + return self.uniqueName("disable") + def disableAndAnnounce(self): """ Inheritors should *not* redefine this function. @@ -197,7 +200,7 @@ class DistributedObject(DistributedObjectBase, EnforcesCalldowns): # hidden). if self.activeState != ESDisabled: self.activeState = ESDisabling - messenger.send(self.uniqueName("disable")) + messenger.send(self.getDisableEvent()) self.disable() @calldownEnforced