oobe support

This commit is contained in:
Joe Shochet 2002-09-12 16:37:18 +00:00
parent 4444891ba3
commit 443dae5523

View File

@ -767,6 +767,11 @@ class DisplayRegionList(PandaObject):
self.displayRegionLookup = {}
i = 0
# Things are funky if we are oobe
if (hasattr(base, 'oobeMode') and base.oobeMode):
# assume we only have one cam at this point
self.displayRegionList.append(DisplayRegionContext(base.win, base.cam, base.groupList[0]))
else:
for cameraGroup in base.cameraList:
# This is following the old way of setting up
# display regions. A display region is set up for
@ -788,6 +793,7 @@ class DisplayRegionList(PandaObject):
if camera.getName()!='<noname>' or len(camera.getName())==0:
self.displayRegionLookup[camera.getName()]=i
i = i + 1
self.accept("CamChange",self.camUpdate)
self.accept("DIRECT-mouse1",self.mouseUpdate)
self.accept("DIRECT-mouse2",self.mouseUpdate)