|
|
@@ -1279,8 +1279,7 @@ class ShowBase(DirectObject.DirectObject):
|
|
|
if win == None:
|
|
|
win = self.win
|
|
|
|
|
|
- if win != None and win.getSideBySideStereo() and \
|
|
|
- win.hasSize() and win.getSbsLeftYSize() != 0:
|
|
|
+ if win != None and win.hasSize() and win.getSbsLeftYSize() != 0:
|
|
|
aspectRatio = float(win.getSbsLeftXSize()) / float(win.getSbsLeftYSize())
|
|
|
else:
|
|
|
if win == None or not hasattr(win, "getRequestedProperties"):
|
|
|
@@ -2823,9 +2822,10 @@ class ShowBase(DirectObject.DirectObject):
|
|
|
# changed and update the camera lenses and aspect2d parameters
|
|
|
self.adjustWindowAspectRatio(self.getAspectRatio())
|
|
|
|
|
|
- if win.getSideBySideStereo() and win.hasSize() and win.getSbsLeftYSize() != 0:
|
|
|
+ if win.hasSize() and win.getSbsLeftYSize() != 0:
|
|
|
self.pixel2d.setScale(2.0 / win.getSbsLeftXSize(), 1.0, 2.0 / win.getSbsLeftYSize())
|
|
|
- self.pixel2dp.setScale(2.0 / win.getSbsLeftXSize(), 1.0, 2.0 / win.getSbsLeftYSize())
|
|
|
+ if self.wantRender2dp:
|
|
|
+ self.pixel2dp.setScale(2.0 / win.getSbsLeftXSize(), 1.0, 2.0 / win.getSbsLeftYSize())
|
|
|
else:
|
|
|
xsize, ysize = self.getSize()
|
|
|
if xsize > 0 and ysize > 0:
|