One more degree conversion.

This commit is contained in:
Andrzej Kapolka 2014-03-12 13:38:16 -07:00
parent 6fb313cc43
commit 800be7eef4

View file

@ -387,7 +387,7 @@ void BoxSetTool::render() {
glm::quat rotation = _editor->getGridRotation();
glm::vec3 axis = glm::axis(rotation);
glRotatef(glm::angle(rotation), axis.x, axis.y, axis.z);
glRotatef(glm::degrees(glm::angle(rotation)), axis.x, axis.y, axis.z);
glm::quat inverseRotation = glm::inverse(rotation);
glm::vec3 rayOrigin = inverseRotation * Application::getInstance()->getMouseRayOrigin();