aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-08-27 06:40:35 -0700
committerMcCabe Maxsted2010-08-27 06:40:35 -0700
commit7d0d4d189674690d5fdd528e78a18cbac3ac6eb9 (patch)
treecefcef324bf54b378f4d103ad98b0a08ad3961f7 /linden
parentRemoved whitespace for script dialogs since scripters rely on it not being there (diff)
downloadmeta-impy-7d0d4d189674690d5fdd528e78a18cbac3ac6eb9.zip
meta-impy-7d0d4d189674690d5fdd528e78a18cbac3ac6eb9.tar.gz
meta-impy-7d0d4d189674690d5fdd528e78a18cbac3ac6eb9.tar.bz2
meta-impy-7d0d4d189674690d5fdd528e78a18cbac3ac6eb9.tar.xz
Fixed object scale not working at 5 decimal places (still needs fixing for position and rotation)
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/newview/llpanelobject.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/newview/llpanelobject.cpp b/linden/indra/newview/llpanelobject.cpp
index 9ef7f91..2517168 100644
--- a/linden/indra/newview/llpanelobject.cpp
+++ b/linden/indra/newview/llpanelobject.cpp
@@ -1684,7 +1684,7 @@ void LLPanelObject::sendRotation(BOOL btn_down)
1684 // Note: must compare before conversion to radians 1684 // Note: must compare before conversion to radians
1685 LLVector3 delta = new_rot - mCurEulerDegrees; 1685 LLVector3 delta = new_rot - mCurEulerDegrees;
1686 1686
1687 if (delta.magVec() >= 0.0001f) 1687 if (delta.magVec() >= 0.00001f)
1688 { 1688 {
1689 mCurEulerDegrees = new_rot; 1689 mCurEulerDegrees = new_rot;
1690 new_rot *= DEG_TO_RAD; 1690 new_rot *= DEG_TO_RAD;
@@ -1730,7 +1730,7 @@ void LLPanelObject::sendScale(BOOL btn_down)
1730 LLVector3 newscale(mCtrlScaleX->get(), mCtrlScaleY->get(), mCtrlScaleZ->get()); 1730 LLVector3 newscale(mCtrlScaleX->get(), mCtrlScaleY->get(), mCtrlScaleZ->get());
1731 1731
1732 LLVector3 delta = newscale - mObject->getScale(); 1732 LLVector3 delta = newscale - mObject->getScale();
1733 if (delta.magVec() >= 0.0001f) 1733 if (delta.magVec() >= 0.00001f)
1734 { 1734 {
1735 // scale changed by more than 1/2 millimeter 1735 // scale changed by more than 1/2 millimeter
1736 1736
@@ -1801,7 +1801,7 @@ void LLPanelObject::sendPosition(BOOL btn_down)
1801 LLVector3d old_pos_global = mObject->getPositionGlobal(); 1801 LLVector3d old_pos_global = mObject->getPositionGlobal();
1802 LLVector3d delta = new_pos_global - old_pos_global; 1802 LLVector3d delta = new_pos_global - old_pos_global;
1803 // moved more than 1/2 millimeter 1803 // moved more than 1/2 millimeter
1804 if (delta.magVec() >= 0.0001f) 1804 if (delta.magVec() >= 0.00001f)
1805 { 1805 {
1806 if (mRootObject != mObject) 1806 if (mRootObject != mObject)
1807 { 1807 {