aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolgrab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lltoolgrab.cpp')
-rw-r--r--linden/indra/newview/lltoolgrab.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/linden/indra/newview/lltoolgrab.cpp b/linden/indra/newview/lltoolgrab.cpp
index 3437193..260d533 100644
--- a/linden/indra/newview/lltoolgrab.cpp
+++ b/linden/indra/newview/lltoolgrab.cpp
@@ -64,6 +64,8 @@
64#include "llvoavatar.h" 64#include "llvoavatar.h"
65#include "llworld.h" 65#include "llworld.h"
66 66
67#include "hippoLimits.h"
68
67const S32 SLOP_DIST_SQ = 4; 69const S32 SLOP_DIST_SQ = 4;
68 70
69// Override modifier key behavior with these buttons 71// Override modifier key behavior with these buttons
@@ -635,9 +637,10 @@ void LLToolGrab::handleHoverActive(S32 x, S32 y, MASK mask)
635 } 637 }
636 638
637 // For safety, cap heights where objects can be dragged 639 // For safety, cap heights where objects can be dragged
638 if (grab_point_global.mdV[VZ] > MAX_OBJECT_Z) 640 float maxHeight = gHippoLimits->getMaxHeight();
641 if (grab_point_global.mdV[VZ] > maxHeight)
639 { 642 {
640 grab_point_global.mdV[VZ] = MAX_OBJECT_Z; 643 grab_point_global.mdV[VZ] = maxHeight;
641 } 644 }
642 645
643 grab_point_global = LLWorld::getInstance()->clipToVisibleRegions(mDragStartPointGlobal, grab_point_global); 646 grab_point_global = LLWorld::getInstance()->clipToVisibleRegions(mDragStartPointGlobal, grab_point_global);