handle the case where base.cTrav is not yet set

This commit is contained in:
Josh Wilson 2007-04-09 21:15:24 +00:00
parent 601057c3a0
commit 85a1b1bcdd

View File

@ -221,6 +221,7 @@ 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. >:(
if base.cTrav:
base.cTrav.traverse(render)
base.eventMgr.doEvents()