From befc0efde94c9b964d6efb32f2cc707f51b986bc Mon Sep 17 00:00:00 2001 From: Ricky Curtice Date: Tue, 4 Mar 2014 20:59:48 -0800 Subject: STORM-1920 / STORM-2013: Fixed uniform scaling highlighting at half values. Re-utilized the technique Richard put in the corner drag code. --- indra/newview/llmanipscale.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llmanipscale.cpp b/indra/newview/llmanipscale.cpp index 6c1b25f2b4..6dc03d8382 100755 --- a/indra/newview/llmanipscale.cpp +++ b/indra/newview/llmanipscale.cpp @@ -1139,7 +1139,7 @@ void LLManipScale::dragFace( S32 x, S32 y ) drag_dist - max_drag_dist, drag_dist - min_drag_dist); - mScaleSnappedValue = drag_dist - relative_snap_dist; + mScaleSnappedValue = (drag_dist - relative_snap_dist) / (mScaleSnapUnit1 * 2.f); if (llabs(relative_snap_dist) < snap_dist) { -- cgit v1.2.3