summaryrefslogtreecommitdiff
path: root/indra/newview/llmanipscale.h
diff options
context:
space:
mode:
authorRicky Curtice <kf6kjg+hg@gmail.com>2014-03-02 14:33:57 -0800
committerRicky Curtice <kf6kjg+hg@gmail.com>2014-03-02 14:33:57 -0800
commite0a015920d3c0f793cadb88b7b8c4cedca61d2fb (patch)
treeea3062709f1198243c6508ed169e25ece4d1822d /indra/newview/llmanipscale.h
parenta060dcfff790f16dd4a0097e0eca4ff4b7f3d0de (diff)
STORM-1920: Richard fixed and optimized a ton more math.
From Richard: There are a bunch of things I changed...mainly I eliminated all the grid_offset nonsense and instead simply calculate the tick index for the current drag position and use that to generate a snapped position as needed. I still use approx_equal because I want grid numbers to light up even when they aren't the axis you are currently snapping to.
Diffstat (limited to 'indra/newview/llmanipscale.h')
-rwxr-xr-xindra/newview/llmanipscale.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llmanipscale.h b/indra/newview/llmanipscale.h
index 5cb8898fd0..13b510c9ff 100755
--- a/indra/newview/llmanipscale.h
+++ b/indra/newview/llmanipscale.h
@@ -157,10 +157,12 @@ private:
LLVector3 mSnapDir1;
LLVector3 mSnapDir2;
F32 mSnapRegimeOffset;
+ F32 mTickPixelSpacing1;
+ F32 mTickPixelSpacing2;
F32 mSnapGuideLength;
LLVector3 mScaleCenter;
LLVector3 mScaleDir;
- F32 mScaleSnapValue;
+ F32 mScaleSnappedValue;
BOOL mInSnapRegime;
F32* mManipulatorScales;
};