diff options
author | Ricky Curtice <kf6kjg+hg@gmail.com> | 2014-03-04 20:59:48 -0800 |
---|---|---|
committer | Ricky Curtice <kf6kjg+hg@gmail.com> | 2014-03-04 20:59:48 -0800 |
commit | befc0efde94c9b964d6efb32f2cc707f51b986bc (patch) | |
tree | 55d577c90359c5ac907c57eeaea1436df862a301 | |
parent | 413d29d3ee352aef8fa3777741949bd6534f8ed4 (diff) |
STORM-1920 / STORM-2013: Fixed uniform scaling highlighting at half values.
Re-utilized the technique Richard put in the corner drag code.
-rwxr-xr-x | indra/newview/llmanipscale.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |