From fa8c808562a42ef71d9543fecbb1a53a5c2c8bf6 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Tue, 25 Apr 2006 21:50:52 +0000 Subject: [PATCH] fixed addInterest (return handle), added removeInterest --- 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 8bd701e17b..5fd8790301 100644 --- a/direct/src/distributed/DistributedObject.py +++ b/direct/src/distributed/DistributedObject.py @@ -370,7 +370,10 @@ class DistributedObject(DistributedObjectBase): assert self.notify.debug('doneBarrier(%s) ignored; no active barrier.' % (name)) def addInterest(self, zoneId, note="", event=None): - self.cr.addInterest(self.getDoId(), zoneId, note, event) + return self.cr.addInterest(self.getDoId(), zoneId, note, event) + + def removeInterest(self, handle, event=None): + return self.cr.removeInterest(handle, event) def b_setLocation(self, parentId, zoneId): self.d_setLocation(parentId, zoneId)