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