mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -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")
|
||||
|
||||
# Check for Auto-Run
|
||||
if base.localAvatar.getAutoRun():
|
||||
forward = 1
|
||||
reverse = 0
|
||||
|
||||
if 'localAvatar' in __builtins__:
|
||||
if base.localAvatar.getAutoRun():
|
||||
forward = 1
|
||||
reverse = 0
|
||||
|
||||
# Determine what the speeds are based on the buttons:
|
||||
self.speed=(forward and self.avatarControlForwardSpeed or
|
||||
reverse and -self.avatarControlReverseSpeed)
|
||||
|
Loading…
x
Reference in New Issue
Block a user