更新 'src/Viewer/fg_os_osgviewer.cxx'

This commit is contained in:
zhongjin 2022-12-09 13:08:16 +08:00
parent 8bea02b7de
commit a777d74470

View File

@ -137,6 +137,20 @@ static void setStereoMode(const char* mode)
} else {
stereoOn = false;
}
//zhongjin
SG_LOG(SG_VIEW, SG_DEBUG, "立体模式: " << mode);
if (stereoOn) {
SG_LOG(SG_VIEW, SG_DEBUG, "修改立体参数");
std::string cmode;
cmode = fgGetString("/sim/current-view/name", "飞行员");
SG_LOG(SG_VIEW, SG_DEBUG, "当前视角: " << cmode);
}
DisplaySettings::instance()->setStereo(stereoOn);
DisplaySettings::instance()->setStereoMode(stereoMode);
}