Fix #220, Ctrl-U no longer working for YASim
Set model-state's position from properties so it can be manipulated from the property tree.
This commit is contained in:
parent
69905cc45b
commit
d45bfbf225
1 changed files with 5 additions and 0 deletions
|
@ -259,6 +259,11 @@ void YASim::copyToYASim(bool copyState)
|
|||
|
||||
// position
|
||||
sgGeodToCart(lat, lon, alt, s.pos);
|
||||
{
|
||||
// allow setting of /position/[lat|long|alti]tude
|
||||
double * dp = &model->getState()->pos[0];
|
||||
dp[0] = s.pos[0]; dp[1] = s.pos[1]; dp[2] = s.pos[2];
|
||||
}
|
||||
|
||||
// orientation
|
||||
Glue::euler2orient(roll, pitch, hdg, s.orient);
|
||||
|
|
Loading…
Reference in a new issue