mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
default parent to zone
This commit is contained in:
parent
4aa22f8057
commit
0f9617537b
@ -1,4 +1,4 @@
|
||||
"""BasicEntities module: contains the BasicEntities class"""
|
||||
"""BasicEntities module: contains fundamental entity types and base classes"""
|
||||
|
||||
import Entity
|
||||
import DistributedEntity
|
||||
@ -17,6 +17,8 @@ class privNodePathImpl(NodePath.NodePath):
|
||||
|
||||
if hasattr(self, 'parent'):
|
||||
self.level.requestReparent(self, self.parent)
|
||||
else:
|
||||
self.level.requestReparent(self, 'zone')
|
||||
|
||||
def destroy(self):
|
||||
self.removeNode()
|
||||
|
Loading…
x
Reference in New Issue
Block a user