From: Torsten Dreyer Date: Tue, 5 Jul 2011 15:33:11 +0000 (+0200) Subject: Fix #220, Ctrl-U no longer working for YASim X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d45bfbf2256cbd5c85582a6100a72dbaaf77b21f;p=flightgear.git 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. --- diff --git a/src/FDM/YASim/YASim.cxx b/src/FDM/YASim/YASim.cxx index 9635e7294..95261df55 100644 --- a/src/FDM/YASim/YASim.cxx +++ b/src/FDM/YASim/YASim.cxx @@ -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);