Browse Source

Fixed Avatar problem in the LevelEditor

Gyedo Jeon 18 years ago
parent
commit
c96cc1a425
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/controls/GravityWalker.py

+ 1 - 1
direct/src/controls/GravityWalker.py

@@ -472,7 +472,7 @@ class GravityWalker(DirectObject.DirectObject):
 
 
         # Check for Auto-Run
         # Check for Auto-Run
         if 'localAvatar' in __builtins__:
         if 'localAvatar' in __builtins__:
-            if base.localAvatar.getAutoRun():
+            if base.localAvatar and base.localAvatar.getAutoRun():
                 forward = 1
                 forward = 1
                 reverse = 0
                 reverse = 0