]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/model/placement.cxx
pass SGReaderWriterXMLOptions to effects
[simgear.git] / simgear / scene / model / placement.cxx
index 486113d8287eba2fcd4becbcb47b513a9753575a..cd38181e212c611cee2ab8fb53a9921f0f697ca2 100644 (file)
@@ -46,7 +46,7 @@ SGModelPlacement::update()
 {
   // The cartesian position
   SGVec3d position = SGVec3d::fromGeod(_position);
-  _transform->setPosition(position.osg());
+  _transform->setPosition(toOsg(position));
 
   // The orientation, composed from the horizontal local orientation and the
   // orientation wrt the horizontal local frame
@@ -56,7 +56,7 @@ SGModelPlacement::update()
   // the y axis 180 degrees.
   orient *= SGQuatd::fromRealImag(0, SGVec3d(0, 1, 0));
 
-  _transform->setAttitude(orient.osg());
+  _transform->setAttitude(toOsg(orient));
 }
 
 bool