src/Viewer/view.cxx: Fixed Walker Orbit view.
The fix is to add handling of target-lon-deg-path etc in View::recalcLookAt.
This commit is contained in:
parent
db255233f7
commit
368443a4b3
1 changed files with 19 additions and 0 deletions
|
@ -1031,6 +1031,25 @@ View::recalcLookAt ()
|
|||
);
|
||||
}
|
||||
|
||||
_target.setLongitudeDeg(
|
||||
ViewPropertyEvaluator::getDoubleValue(
|
||||
"((/sim/view[(/sim/current-view/view-number-raw)]/config/root)(/sim/view[(/sim/current-view/view-number-raw)]/config/target-lon-deg-path))",
|
||||
_target.getLongitudeDeg()
|
||||
)
|
||||
);
|
||||
_target.setLatitudeDeg(
|
||||
ViewPropertyEvaluator::getDoubleValue(
|
||||
"((/sim/view[(/sim/current-view/view-number-raw)]/config/root)(/sim/view[(/sim/current-view/view-number-raw)]/config/target-lat-deg-path))",
|
||||
_target.getLatitudeDeg()
|
||||
)
|
||||
);
|
||||
_target.setElevationFt(
|
||||
ViewPropertyEvaluator::getDoubleValue(
|
||||
"((/sim/view[(/sim/current-view/view-number-raw)]/config/root)(/sim/view[(/sim/current-view/view-number-raw)]/config/target-alt-ft-path))",
|
||||
_target.getElevationFt()
|
||||
)
|
||||
);
|
||||
|
||||
if (_lookat_agl) {
|
||||
handleAGL();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue