AuroraSim: HippoLimits and HippoGridManager update, and support for Aurora's MaxDrag
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
#include "llworld.h"
|
||||
#include "llui.h"
|
||||
#include "pipeline.h"
|
||||
#include "hippogridmanager.h"
|
||||
|
||||
// [RLVa:KB]
|
||||
#include "rlvhandler.h"
|
||||
@@ -547,6 +548,9 @@ BOOL LLManipTranslate::handleHover(S32 x, S32 y, MASK mask)
|
||||
{
|
||||
F32 max_drag_distance = gSavedSettings.getF32("MaxDragDistance");
|
||||
|
||||
if (gHippoGridManager->getConnectedGrid()->isAurora())
|
||||
max_drag_distance = llmin(10000.f, max_drag_distance);
|
||||
|
||||
if (relative_move.magVecSquared() > max_drag_distance * max_drag_distance)
|
||||
{
|
||||
lldebugst(LLERR_USER_INPUT) << "hover handled by LLManipTranslate (too far)" << llendl;
|
||||
|
||||
Reference in New Issue
Block a user