1
0
Fork 0

src/Viewer/sview.cxx: fixed incorrect heading and roll when cloning some lookfrom views.

Bug happened with views that specify non-zero heading or roll.
This commit is contained in:
Julian Smith 2020-11-24 22:57:13 +00:00
parent a094b822f8
commit a69e56043a

View file

@ -969,9 +969,9 @@ struct SviewViewEyeTarget : SviewView
doesn't work if aircraft has non-zero roll. We need to use
SGQuatd - see View::recalcLookFrom(). */
m_eye.add_step(new SviewStepRotate(
-view_config->getDoubleValue("heading-offset-deg"),
view_config->getDoubleValue("heading-offset-deg"),
-view_config->getDoubleValue("pitch-offset-deg"),
-view_config->getDoubleValue("roll-offset-deg")
view_config->getDoubleValue("roll-offset-deg")
));
SG_LOG(SG_VIEW, SG_DEBUG, "m_eye=" << m_eye);