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