prevent crash if disable called twice (for instance, from multiple inheritance)

This commit is contained in:
David Rose 2005-01-19 01:35:44 +00:00
parent 9a1c68038b
commit 2b623dc9ed
1 changed files with 3 additions and 2 deletions

View File

@ -19,8 +19,9 @@ class DistributedNode(DistributedObject.DistributedObject, NodePath):
return None
def disable(self):
self.reparentTo(hidden)
DistributedObject.DistributedObject.disable(self)
if self.activeState != DistributedObject.ESDisabled:
self.reparentTo(hidden)
DistributedObject.DistributedObject.disable(self)
def delete(self):
try: