summaryrefslogtreecommitdiff
path: root/indra/newview/llmaniptranslate.cpp
diff options
context:
space:
mode:
authorvyacheslavsproductengine <vyacheslavsproductengine@lindenlab.com>2015-06-17 20:02:05 +0400
committervyacheslavsproductengine <vyacheslavsproductengine@lindenlab.com>2015-06-17 20:02:05 +0400
commit91c45fa3ba456f4d9ffcf59d511657172b81ae52 (patch)
tree20976faf05f5e28d242a8ac94bd05e08206fd0f3 /indra/newview/llmaniptranslate.cpp
parent1a470f11cda7ee31af2aeafb6e0ac173798ead57 (diff)
MAINT-5207 FIXED (Build: Snap to grid / Grid options broken, object snaps to incorrect Units)
MAINT-5208 FIXED (Grid Lines Changing Scale Depending on Distance from Camera)
Diffstat (limited to 'indra/newview/llmaniptranslate.cpp')
-rwxr-xr-xindra/newview/llmaniptranslate.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/llmaniptranslate.cpp b/indra/newview/llmaniptranslate.cpp
index 394db71fb9..b4259a456c 100755
--- a/indra/newview/llmaniptranslate.cpp
+++ b/indra/newview/llmaniptranslate.cpp
@@ -1285,12 +1285,12 @@ void LLManipTranslate::renderSnapGuides()
{
tick_start = selection_center + (translate_axis * (smallest_grid_unit_scale * (F32)i - offset_nearest_grid_unit));
- F32 cur_subdivisions = getSubdivisionLevel(tick_start, translate_axis, getMinGridScale());
-
- if (fmodf((F32)(i + sub_div_offset), (max_subdivisions / cur_subdivisions)) != 0.f)
+ //No need check this condition to prevent tick position scaling (FIX MAINT-5207/5208)
+ //F32 cur_subdivisions = getSubdivisionLevel(tick_start, translate_axis, getMinGridScale());
+ /*if (fmodf((F32)(i + sub_div_offset), (max_subdivisions / cur_subdivisions)) != 0.f)
{
continue;
- }
+ }*/
// add in off-axis offset
tick_start += (mSnapOffsetAxis * mSnapOffsetMeters);