From: Flightgear-commitlogs <ma...@hy...> - 2012-02-28 21:44:11
|
The branch, next has been updated - Log ----------------------------------------------------------------- commit e4e3760b3d5ac05cec767d8f0221aba2ef62a508 Author: Stuart Buchanan Date: Tue Feb 28 21:05:54 2012 +0000 Fix masked rotation so that it's clockwise from above. - Summary ------------------------------------------------------------- simgear/scene/tgdb/obj.cxx | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) - Diff ---------------------------------------------------------------- diff --git a/simgear/scene/tgdb/obj.cxx b/simgear/scene/tgdb/obj.cxx index d6c6369..7ac2c4c 100644 --- a/simgear/scene/tgdb/obj.cxx +++ b/simgear/scene/tgdb/obj.cxx @@ -672,7 +672,7 @@ SGLoadBTG(const std::string& path, SGMaterialLib *matlib, bool use_random_object if (obj.model->get_heading_type() == SGMatModel::HEADING_MASK) { // Rotate the object around the z axis. - double hdg = obj.rotation * M_PI * 2; + double hdg = - obj.rotation * M_PI * 2; transformMat.preMult(osg::Matrix::rotate(hdg, osg::Vec3d(0.0, 0.0, 1.0))); } ----------------------------------------------------------------------- SimGear |