mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
handle the case where base.cTrav is not yet set
This commit is contained in:
parent
601057c3a0
commit
85a1b1bcdd
@ -221,6 +221,7 @@ class DistancePhasedNode(PhasedObject, DirectObject, NodePath):
|
|||||||
# we use 'render'here since if we only try to
|
# we use 'render'here since if we only try to
|
||||||
# traverse ourself, we end up calling exit
|
# traverse ourself, we end up calling exit
|
||||||
# events for the rest of the eventHandlers. >:(
|
# events for the rest of the eventHandlers. >:(
|
||||||
|
if base.cTrav:
|
||||||
base.cTrav.traverse(render)
|
base.cTrav.traverse(render)
|
||||||
base.eventMgr.doEvents()
|
base.eventMgr.doEvents()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user