mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
this fixes the crash in leveleditor
This commit is contained in:
parent
2848f047c9
commit
a9259e8964
@ -462,10 +462,11 @@ class GravityWalker(DirectObject.DirectObject):
|
|||||||
jump = inputState.isSet("jump")
|
jump = inputState.isSet("jump")
|
||||||
|
|
||||||
# Check for Auto-Run
|
# Check for Auto-Run
|
||||||
if base.localAvatar.getAutoRun():
|
if 'localAvatar' in __builtins__:
|
||||||
forward = 1
|
if base.localAvatar.getAutoRun():
|
||||||
reverse = 0
|
forward = 1
|
||||||
|
reverse = 0
|
||||||
|
|
||||||
# Determine what the speeds are based on the buttons:
|
# Determine what the speeds are based on the buttons:
|
||||||
self.speed=(forward and self.avatarControlForwardSpeed or
|
self.speed=(forward and self.avatarControlForwardSpeed or
|
||||||
reverse and -self.avatarControlReverseSpeed)
|
reverse and -self.avatarControlReverseSpeed)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user