diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llmaniprotate.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/linden/indra/newview/llmaniprotate.cpp b/linden/indra/newview/llmaniprotate.cpp index df503ec..77c8bd5 100644 --- a/linden/indra/newview/llmaniprotate.cpp +++ b/linden/indra/newview/llmaniprotate.cpp | |||
@@ -63,6 +63,8 @@ | |||
63 | #include "lldrawable.h" | 63 | #include "lldrawable.h" |
64 | #include "llglheaders.h" | 64 | #include "llglheaders.h" |
65 | 65 | ||
66 | #include "hippolimits.h" | ||
67 | |||
66 | const F32 RADIUS_PIXELS = 100.f; // size in screen space | 68 | const F32 RADIUS_PIXELS = 100.f; // size in screen space |
67 | const F32 SQ_RADIUS = RADIUS_PIXELS * RADIUS_PIXELS; | 69 | const F32 SQ_RADIUS = RADIUS_PIXELS * RADIUS_PIXELS; |
68 | const F32 WIDTH_PIXELS = 8; | 70 | const F32 WIDTH_PIXELS = 8; |
@@ -1124,9 +1126,9 @@ BOOL LLManipRotate::updateVisiblity() | |||
1124 | F32 z_dist = -1.f * (mCenterToCam * cameraAtAxis); | 1126 | F32 z_dist = -1.f * (mCenterToCam * cameraAtAxis); |
1125 | 1127 | ||
1126 | // Don't drag manip if object too far away | 1128 | // Don't drag manip if object too far away |
1127 | if (gSavedSettings.getBOOL("LimitSelectDistance")) | 1129 | if (!gSavedSettings.getBOOL("DisableMaxBuildConstraints") && gSavedSettings.getBOOL("LimitSelectDistance")) |
1128 | { | 1130 | { |
1129 | F32 max_select_distance = gSavedSettings.getF32("MaxSelectDistance"); | 1131 | F32 max_select_distance = gHippoLimits->getMaxSelectDistance(); |
1130 | if (dist_vec(gAgent.getPositionAgent(), center) > max_select_distance) | 1132 | if (dist_vec(gAgent.getPositionAgent(), center) > max_select_distance) |
1131 | { | 1133 | { |
1132 | visible = FALSE; | 1134 | visible = FALSE; |