prevent crash if disable called twice (for instance, from multiple inheritance)
This commit is contained in:
parent
9a1c68038b
commit
2b623dc9ed
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue