mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
fixed BattleBlocker entId crash
This commit is contained in:
parent
481f53093f
commit
b52892ac41
@ -115,13 +115,16 @@ class DistributedNodePathEntity(DistributedEntity.DistributedEntity,
|
|||||||
NodePath.NodePath, NodePathAttribs):
|
NodePath.NodePath, NodePathAttribs):
|
||||||
def __init__(self, cr):
|
def __init__(self, cr):
|
||||||
DistributedEntity.DistributedEntity.__init__(self, cr)
|
DistributedEntity.DistributedEntity.__init__(self, cr)
|
||||||
|
|
||||||
|
def generateInit(self):
|
||||||
|
DistributedEntity.DistributedEntity.generateInit(self)
|
||||||
node = hidden.attachNewNode('DistributedNodePathEntity')
|
node = hidden.attachNewNode('DistributedNodePathEntity')
|
||||||
NodePath.NodePath.__init__(self, node)
|
NodePath.NodePath.__init__(self, node)
|
||||||
|
|
||||||
def announceGenerate(self):
|
def announceGenerate(self):
|
||||||
DistributedEntity.DistributedEntity.announceGenerate(self)
|
DistributedEntity.DistributedEntity.announceGenerate(self)
|
||||||
self.initNodePathAttribs(self)
|
self.initNodePathAttribs(self)
|
||||||
|
|
||||||
def delete(self):
|
def delete(self):
|
||||||
self.removeNode()
|
self.removeNode()
|
||||||
DistributedEntity.DistributedEntity.delete(self)
|
DistributedEntity.DistributedEntity.delete(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user