DistributedNodepathEntities were being destroyed twice

This commit is contained in:
Darren Ranalli 2003-11-07 23:32:32 +00:00
parent 31b03be474
commit ab9d795781

View File

@ -101,7 +101,7 @@ class NodePathEntity(Entity.Entity, NodePath.NodePath, NodePathAttribs):
node = hidden.attachNewNode('NodePathEntity')
NodePath.NodePath.__init__(self, node)
Entity.Entity.__init__(self, level, entId)
NodePathAttribs.initNodePathAttribs(self)
self.initNodePathAttribs(self)
def destroy(self):
NodePathAttribs.destroy(self)
@ -120,12 +120,8 @@ class DistributedNodePathEntity(DistributedEntity.DistributedEntity,
def announceGenerate(self):
DistributedEntity.DistributedEntity.announceGenerate(self)
NodePathAttribs.initNodePathAttribs(self)
self.initNodePathAttribs(self)
def disable(self):
NodePathAttribs.destroy(self)
DistributedEntity.DistributedEntity.disable(self)
def delete(self):
self.removeNode()
DistributedEntity.DistributedEntity.delete(self)