From 8dfe52b1e0a45581e2aab25202aa24117f3e350d Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Mon, 30 Apr 2007 22:59:52 +0000 Subject: [PATCH] "more checking for currentControls" --- direct/src/controls/ControlManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/controls/ControlManager.py b/direct/src/controls/ControlManager.py index d570507b32..836d04a0bd 100755 --- a/direct/src/controls/ControlManager.py +++ b/direct/src/controls/ControlManager.py @@ -193,7 +193,6 @@ class ControlManager: if self.currentControls: self.currentControls.setCollisionsActive(1) - def collisionsOff(self): assert self.notify.debugCall(id(self)) if self.currentControls: @@ -201,7 +200,8 @@ class ControlManager: def placeOnFloor(self): assert self.notify.debugCall(id(self)) - self.currentControls.placeOnFloor() + if self.currentControls: + self.currentControls.placeOnFloor() def enable(self): assert self.notify.debugCall(id(self))