1
0
Fork 0

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:
Torsten Dreyer 2011-07-05 17:33:11 +02:00
parent 69905cc45b
commit d45bfbf225

View file

@ -259,6 +259,11 @@ void YASim::copyToYASim(bool copyState)
// position // position
sgGeodToCart(lat, lon, alt, s.pos); 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 // orientation
Glue::euler2orient(roll, pitch, hdg, s.orient); Glue::euler2orient(roll, pitch, hdg, s.orient);