aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpanelobject.cpp')
-rw-r--r--linden/indra/newview/llpanelobject.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/linden/indra/newview/llpanelobject.cpp b/linden/indra/newview/llpanelobject.cpp
index 5cd8690..584ecb8 100644
--- a/linden/indra/newview/llpanelobject.cpp
+++ b/linden/indra/newview/llpanelobject.cpp
@@ -976,12 +976,18 @@ void LLPanelObject::getState( )
976 { 976 {
977 mSpinScaleX->set( 1.f - scale_x ); 977 mSpinScaleX->set( 1.f - scale_x );
978 mSpinScaleY->set( 1.f - scale_y ); 978 mSpinScaleY->set( 1.f - scale_y );
979 calcp->setVar(LLCalc::X_HOLE, 1.f - scale_x);
980 calcp->setVar(LLCalc::Y_HOLE, 1.f - scale_y);
981 mSpinScaleX->setMinValue(-1.f); 979 mSpinScaleX->setMinValue(-1.f);
982 mSpinScaleX->setMaxValue(1.f); 980 mSpinScaleX->setMaxValue(1.f);
983 mSpinScaleY->setMinValue(-1.f); 981 mSpinScaleY->setMinValue(-1.f);
984 mSpinScaleY->setMaxValue(1.f); 982 mSpinScaleY->setMaxValue(1.f);
983
984 // Torus' Hole Size is Box/Cyl/Prism's Taper
985 calcp->setVar(LLCalc::X_TAPER, 1.f - scale_x);
986 calcp->setVar(LLCalc::Y_TAPER, 1.f - scale_y);
987
988 // Box/Cyl/Prism have no hole size
989 calcp->setVar(LLCalc::X_HOLE, 0.f);
990 calcp->setVar(LLCalc::Y_HOLE, 0.f);
985 } 991 }
986 break; 992 break;
987 } 993 }