diff --git a/src/Viewer/fg_os_osgviewer.cxx b/src/Viewer/fg_os_osgviewer.cxx index c723049..08f1794 100755 --- a/src/Viewer/fg_os_osgviewer.cxx +++ b/src/Viewer/fg_os_osgviewer.cxx @@ -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); }