Skip to content
Snippets Groups Projects
Commit 98d2a434 authored by Graham Madarasz's avatar Graham Madarasz
Browse files

NORSPEC-263 replaced dropped deg to rad conversion between UI and material update

parent ac018153
No related branches found
No related tags found
No related merge requests found
...@@ -1941,7 +1941,7 @@ void LLPanelFace::onCommitMaterialBumpyRot(LLUICtrl* ctrl, void* userdata) ...@@ -1941,7 +1941,7 @@ void LLPanelFace::onCommitMaterialBumpyRot(LLUICtrl* ctrl, void* userdata)
{ {
LLPanelFace* self = (LLPanelFace*) userdata; LLPanelFace* self = (LLPanelFace*) userdata;
llassert_always(self); llassert_always(self);
LLSelectedTEMaterial::setNormalRotation(self,self->getCurrentBumpyRot()); LLSelectedTEMaterial::setNormalRotation(self,self->getCurrentBumpyRot() * DEG_TO_RAD);
} }
//static //static
...@@ -1949,7 +1949,7 @@ void LLPanelFace::onCommitMaterialShinyRot(LLUICtrl* ctrl, void* userdata) ...@@ -1949,7 +1949,7 @@ void LLPanelFace::onCommitMaterialShinyRot(LLUICtrl* ctrl, void* userdata)
{ {
LLPanelFace* self = (LLPanelFace*) userdata; LLPanelFace* self = (LLPanelFace*) userdata;
llassert_always(self); llassert_always(self);
LLSelectedTEMaterial::setSpecularRotation(self,self->getCurrentShinyRot()); LLSelectedTEMaterial::setSpecularRotation(self,self->getCurrentShinyRot() * DEG_TO_RAD);
} }
//static //static
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment