From: Torsten Dreyer Date: Tue, 26 Oct 2010 19:20:01 +0000 (+0200) Subject: resurrection of /sim/rendering/draw-otw X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4371a18771829f97c9efa1145ac12f67954574ff;p=flightgear.git resurrection of /sim/rendering/draw-otw --- diff --git a/src/Main/viewer.cxx b/src/Main/viewer.cxx index ab5f6aa44..05816f8bc 100644 --- a/src/Main/viewer.cxx +++ b/src/Main/viewer.cxx @@ -651,6 +651,8 @@ FGViewer::update (double dt) } } recalc(); - _cameraGroup->update(toOsg(_absolute_view_pos), toOsg(mViewOrientation)); - _cameraGroup->setCameraParameters(get_v_fov(), get_aspect_ratio()); + if( fgGetBool( "/sim/rendering/draw-otw", true ) ) { + _cameraGroup->update(toOsg(_absolute_view_pos), toOsg(mViewOrientation)); + _cameraGroup->setCameraParameters(get_v_fov(), get_aspect_ratio()); + } }