From 07fe92928854efbfb30ecb213a362633c311bbe7 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Tue, 1 Feb 2011 19:23:05 +0100 Subject: [PATCH] Fixed helicopter view. Corrected the new panning check: panning rotates around the y-axis, so the x- or z-axis need an offset != 0 (not x-/y-axis). --- src/Main/viewer.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Main/viewer.cxx b/src/Main/viewer.cxx index a61198d66..57e60f481 100644 --- a/src/Main/viewer.cxx +++ b/src/Main/viewer.cxx @@ -289,10 +289,10 @@ void FGViewer::setHeadingOffset_deg (double heading_offset_deg) { _dirty = true; - if (_at_model && (_offset_m.x() == 0.0)&&(_offset_m.y() == 0.0)) + if (_at_model && (_offset_m.x() == 0.0)&&(_offset_m.z() == 0.0)) { - /* avoid optical effects (e.g. rotating sky) when looking at something - * with heading offsets x==y==0 (view heading cannot change). */ + /* avoid optical effects (e.g. rotating sky) when "looking at" with + * heading offsets x==z==0 (view heading cannot change). */ _heading_offset_deg = 0.0; } else @@ -324,10 +324,10 @@ void FGViewer::setGoalHeadingOffset_deg (double goal_heading_offset_deg) { _dirty = true; - if (_at_model && (_offset_m.x() == 0.0)&&(_offset_m.y() == 0.0)) + if (_at_model && (_offset_m.x() == 0.0)&&(_offset_m.z() == 0.0)) { - /* avoid optical effects (e.g. rotating sky) when looking at something - * with heading offsets x==y==0 (view heading cannot change). */ + /* avoid optical effects (e.g. rotating sky) when "looking at" with + * heading offsets x==z==0 (view heading cannot change). */ _goal_heading_offset_deg = 0.0; return; } -- 2.39.5