mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
check for currentControls before getIsAirborne()
This commit is contained in:
parent
e30a7a481e
commit
cd3c0ae1c0
@ -159,7 +159,9 @@ class ControlManager:
|
||||
return self.currentControls.getSpeeds()
|
||||
|
||||
def getIsAirborne(self):
|
||||
if self.currentControls:
|
||||
return self.currentControls.getIsAirborne()
|
||||
return False
|
||||
|
||||
def setTag(self, key, value):
|
||||
assert self.notify.debugCall(id(self))
|
||||
|
Loading…
x
Reference in New Issue
Block a user