From 4a6dde3b36c7a9bd7ed6602e291b8436fdbd4378 Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Sat, 30 Mar 2013 16:06:03 -0500 Subject: NORSPEC-69 Fix for bump and specular map rotation values showing up as radians instead of degrees. --- indra/newview/llpanelface.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp index 7b99d5897e..754a13dd4c 100644 --- a/indra/newview/llpanelface.cpp +++ b/indra/newview/llpanelface.cpp @@ -1260,7 +1260,7 @@ void LLPanelFace::onMaterialLoaded(const LLMaterialID& material_id, const LLMate rot = material->getSpecularRotation(); getChild("shinyScaleU")->setValue(repeat_x); getChild("shinyScaleV")->setValue(repeat_y); - getChild("shinyRot")->setValue(rot); + getChild("shinyRot")->setValue(rot*RAD_TO_DEG); getChild("shinyOffsetU")->setValue(offset_x); getChild("shinyOffsetV")->setValue(offset_y); getChild("shinycolorswatch")->setOriginal(material->getSpecularLightColor()); @@ -1281,7 +1281,7 @@ void LLPanelFace::onMaterialLoaded(const LLMaterialID& material_id, const LLMate rot = material->getNormalRotation(); getChild("bumpyScaleU")->setValue(repeat_x); getChild("bumpyScaleV")->setValue(repeat_y); - getChild("bumpyRot")->setValue(rot); + getChild("bumpyRot")->setValue(rot*RAD_TO_DEG); getChild("bumpyOffsetU")->setValue(offset_x); getChild("bumpyOffsetV")->setValue(offset_y); } @@ -1333,7 +1333,7 @@ void LLPanelFace::updateMaterial() getChild("bumpyOffsetV")->getValue().asReal()); mMaterial->setNormalRepeat(getChild("bumpyScaleU")->getValue().asReal(), getChild("bumpyScaleV")->getValue().asReal()); - mMaterial->setNormalRotation(getChild("bumpyRot")->getValue().asReal()); + mMaterial->setNormalRotation(getChild("bumpyRot")->getValue().asReal()*DEG_TO_RAD); } else { @@ -1351,7 +1351,7 @@ void LLPanelFace::updateMaterial() getChild("shinyOffsetV")->getValue().asReal()); mMaterial->setSpecularRepeat(getChild("shinyScaleU")->getValue().asReal(), getChild("shinyScaleV")->getValue().asReal()); - mMaterial->setSpecularRotation(getChild("shinyRot")->getValue().asReal()); + mMaterial->setSpecularRotation(getChild("shinyRot")->getValue().asReal()*DEG_TO_RAD); } else { -- cgit v1.2.3