mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
oobe support
This commit is contained in:
parent
4444891ba3
commit
443dae5523
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user