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:
parent
a094b822f8
commit
a69e56043a
1 changed files with 2 additions and 2 deletions
|
@ -969,9 +969,9 @@ struct SviewViewEyeTarget : SviewView
|
||||||
doesn't work if aircraft has non-zero roll. We need to use
|
doesn't work if aircraft has non-zero roll. We need to use
|
||||||
SGQuatd - see View::recalcLookFrom(). */
|
SGQuatd - see View::recalcLookFrom(). */
|
||||||
m_eye.add_step(new SviewStepRotate(
|
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("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);
|
SG_LOG(SG_VIEW, SG_DEBUG, "m_eye=" << m_eye);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue