1
0
Fork 0

Save a costly SGVec3d::fromGeod() calculation

This commit is contained in:
ehofman 2009-11-05 13:46:49 +00:00 committed by Tim Moore
parent 2d2710d5da
commit fe834dedfb

View file

@ -611,7 +611,8 @@ FGRenderer::update( bool refresh_camera_settings ) {
}
SGSkyState sstate;
sstate.pos = current__view->getPosition();
sstate.pos = current__view->getViewPosition();
sstate.pos_geod = current__view->getPosition();
sstate.ori = current__view->getViewOrientation();
sstate.spin = l->get_sun_rotation();
sstate.gst = globals->get_time_params()->getGst();