diff options
author | Jacek Antonelli | 2009-01-30 19:29:21 -0600 |
---|---|---|
committer | Jacek Antonelli | 2009-01-30 19:29:21 -0600 |
commit | 90240de9f5f4f1fe62378df1782d5e37b8030b6f (patch) | |
tree | fe1bb2e6956e720558ca0552504a8bdcb3e18b0a /linden | |
parent | Disabled spammy loadWAV error for nonexistent files. (diff) | |
download | meta-impy-90240de9f5f4f1fe62378df1782d5e37b8030b6f.zip meta-impy-90240de9f5f4f1fe62378df1782d5e37b8030b6f.tar.gz meta-impy-90240de9f5f4f1fe62378df1782d5e37b8030b6f.tar.bz2 meta-impy-90240de9f5f4f1fe62378df1782d5e37b8030b6f.tar.xz |
Made build math taper/hole size correct for box/etc. [#62]
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/llpanelobject.cpp | 10 |
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 | } |