aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelface.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanelface.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/linden/indra/newview/llpanelface.cpp b/linden/indra/newview/llpanelface.cpp
index 4742627..e9555c6 100644
--- a/linden/indra/newview/llpanelface.cpp
+++ b/linden/indra/newview/llpanelface.cpp
@@ -35,6 +35,7 @@
35#include "llpanelface.h" 35#include "llpanelface.h"
36 36
37// library includes 37// library includes
38#include "llcalc.h"
38#include "llerror.h" 39#include "llerror.h"
39#include "llfocusmgr.h" 40#include "llfocusmgr.h"
40#include "llrect.h" 41#include "llrect.h"
@@ -381,6 +382,7 @@ void LLPanelFace::sendTextureInfo()
381void LLPanelFace::getState() 382void LLPanelFace::getState()
382{ 383{
383 LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getFirstObject(); 384 LLViewerObject* objectp = LLSelectMgr::getInstance()->getSelection()->getFirstObject();
385 LLCalc* calcp = LLCalc::getInstance();
384 386
385 if( objectp 387 if( objectp
386 && objectp->getPCode() == LL_PCODE_VOLUME 388 && objectp->getPCode() == LL_PCODE_VOLUME
@@ -754,6 +756,15 @@ void LLPanelFace::getState()
754 childSetEnabled("button apply",enabled); 756 childSetEnabled("button apply",enabled);
755 } 757 }
756 } 758 }
759
760 // Set variable values for numeric expressions
761 calcp->setVar(LLCalc::TEX_U_SCALE, childGetValue("TexScaleU").asReal());
762 calcp->setVar(LLCalc::TEX_V_SCALE, childGetValue("TexScaleV").asReal());
763 calcp->setVar(LLCalc::TEX_U_OFFSET, childGetValue("TexOffsetU").asReal());
764 calcp->setVar(LLCalc::TEX_V_OFFSET, childGetValue("TexOffsetV").asReal());
765 calcp->setVar(LLCalc::TEX_ROTATION, childGetValue("TexRot").asReal());
766 calcp->setVar(LLCalc::TEX_TRANSPARENCY, childGetValue("ColorTrans").asReal());
767 calcp->setVar(LLCalc::TEX_GLOW, childGetValue("glow").asReal());
757 } 768 }
758 else 769 else
759 { 770 {
@@ -787,6 +798,15 @@ void LLPanelFace::getState()
787 798
788 childSetEnabled("button align",FALSE); 799 childSetEnabled("button align",FALSE);
789 childSetEnabled("button apply",FALSE); 800 childSetEnabled("button apply",FALSE);
801
802 // Set variable values for numeric expressions
803 calcp->clearVar(LLCalc::TEX_U_SCALE);
804 calcp->clearVar(LLCalc::TEX_V_SCALE);
805 calcp->clearVar(LLCalc::TEX_U_OFFSET);
806 calcp->clearVar(LLCalc::TEX_V_OFFSET);
807 calcp->clearVar(LLCalc::TEX_ROTATION);
808 calcp->clearVar(LLCalc::TEX_TRANSPARENCY);
809 calcp->clearVar(LLCalc::TEX_GLOW);
790 } 810 }
791} 811}
792 812