mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
DistributedNodepathEntities were being destroyed twice
This commit is contained in:
parent
31b03be474
commit
ab9d795781
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user