Permalink
Browse files

Now using deg instead of Ogre::Degree

  • Loading branch information...
1 parent 8549c0e commit 2f90f574c68109b64122e9f29c49eabf4940c928 @Phosfor Phosfor committed Aug 27, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Managers/Entities/Entity.cpp
@@ -140,9 +140,9 @@ void Entity::_defaultLoader(const string &entityName)
// Orientation
argName = tree_handle.get<string>("common_settigns.orientation", "1, 1, 1");
if (parseArguments("orientation", argName, storage, parseStorage))
- setRotation(quat(Ogre::Degree(storage[0]), Ogre::Vector3::UNIT_X) *
- quat(Ogre::Degree(storage[1]), Ogre::Vector3::UNIT_Y) *
- quat(Ogre::Degree(storage[2]), Ogre::Vector3::UNIT_Z));
+ setRotation(quat(deg(storage[0]), Ogre::Vector3::UNIT_X) *
+ quat(deg(storage[1]), Ogre::Vector3::UNIT_Y) *
+ quat(deg(storage[2]), Ogre::Vector3::UNIT_Z));
// Scale
argName = tree_handle.get<string>("common_settigns.scale", "1, 1, 1");

0 comments on commit 2f90f57

Please sign in to comment.