mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -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()
|
return self.currentControls.getSpeeds()
|
||||||
|
|
||||||
def getIsAirborne(self):
|
def getIsAirborne(self):
|
||||||
return self.currentControls.getIsAirborne()
|
if self.currentControls:
|
||||||
|
return self.currentControls.getIsAirborne()
|
||||||
|
return False
|
||||||
|
|
||||||
def setTag(self, key, value):
|
def setTag(self, key, value):
|
||||||
assert self.notify.debugCall(id(self))
|
assert self.notify.debugCall(id(self))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user