Added checking routine for when winCtrl.mouseWatcher is None

This commit is contained in:
Gyedo Jeon 2009-05-15 23:46:22 +00:00
parent 8370d2be12
commit 5809061ac9
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ class DirectSession(DirectObject):
# [gjeon] change current camera dr, iRay, mouseWatcher accordingly to support multiple windows
if not hasattr(self, 'oobeMode') or self.oobeMode == 0:
for winCtrl in base.winControls:
if winCtrl.mouseWatcher.node().hasMouse():
if winCtrl.mouseWatcher and winCtrl.mouseWatcher.node().hasMouse():
self.win = winCtrl.win
self.camera = winCtrl.camera
self.trueCamera = self.camera