mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
"check for currentControls == None"
This commit is contained in:
parent
b3001b2af2
commit
d723220951
@ -190,10 +190,13 @@ class ControlManager:
|
|||||||
|
|
||||||
def collisionsOn(self):
|
def collisionsOn(self):
|
||||||
assert self.notify.debugCall(id(self))
|
assert self.notify.debugCall(id(self))
|
||||||
|
if self.currentControls:
|
||||||
self.currentControls.setCollisionsActive(1)
|
self.currentControls.setCollisionsActive(1)
|
||||||
|
|
||||||
|
|
||||||
def collisionsOff(self):
|
def collisionsOff(self):
|
||||||
assert self.notify.debugCall(id(self))
|
assert self.notify.debugCall(id(self))
|
||||||
|
if self.currentControls:
|
||||||
self.currentControls.setCollisionsActive(0)
|
self.currentControls.setCollisionsActive(0)
|
||||||
|
|
||||||
def placeOnFloor(self):
|
def placeOnFloor(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user