Skip to content
Snippets Groups Projects
Commit 8926242d authored by David Parks's avatar David Parks
Browse files

Merge branch 'DRTVWR-559' of github.com:secondlife/viewer into DRTVWR-559

parents b5269909 fb402f80
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -745,18 +745,8 @@ BOOL LLToolPie::handleHover(S32 x, S32 y, MASK mask) ...@@ -745,18 +745,8 @@ BOOL LLToolPie::handleHover(S32 x, S32 y, MASK mask)
parent = object->getRootEdit(); parent = object->getRootEdit();
} }
// Show screen-space highlight glow effect if (!handleMediaHover(mHoverPick)
bool show_highlight = false; && !mMouseOutsideSlop
if (handleMediaHover(mHoverPick))
{
// *NOTE: If you think the hover glow conflicts with the media outline, you
// could disable it here.
show_highlight = true;
// cursor set by media object
LL_DEBUGS("UserInput") << "hover handled by LLToolPie (inactive)" << LL_ENDL;
}
else if (!mMouseOutsideSlop
&& mMouseButtonDown && mMouseButtonDown
// disable camera steering if click on land is not used for moving // disable camera steering if click on land is not used for moving
&& gViewerInput.isMouseBindUsed(CLICK_LEFT, MASK_NONE, MODE_THIRD_PERSON)) && gViewerInput.isMouseBindUsed(CLICK_LEFT, MASK_NONE, MODE_THIRD_PERSON))
...@@ -789,7 +779,6 @@ BOOL LLToolPie::handleHover(S32 x, S32 y, MASK mask) ...@@ -789,7 +779,6 @@ BOOL LLToolPie::handleHover(S32 x, S32 y, MASK mask)
if (click_action_object && useClickAction(mask, click_action_object, click_action_object->getRootEdit())) if (click_action_object && useClickAction(mask, click_action_object, click_action_object->getRootEdit()))
{ {
show_highlight = true;
ECursorType cursor = cursorFromObject(click_action_object); ECursorType cursor = cursorFromObject(click_action_object);
gViewerWindow->setCursor(cursor); gViewerWindow->setCursor(cursor);
LL_DEBUGS("UserInput") << "hover handled by LLToolPie (inactive)" << LL_ENDL; LL_DEBUGS("UserInput") << "hover handled by LLToolPie (inactive)" << LL_ENDL;
...@@ -798,7 +787,6 @@ BOOL LLToolPie::handleHover(S32 x, S32 y, MASK mask) ...@@ -798,7 +787,6 @@ BOOL LLToolPie::handleHover(S32 x, S32 y, MASK mask)
else if ((object && !object->isAvatar() && object->flagUsePhysics()) else if ((object && !object->isAvatar() && object->flagUsePhysics())
|| (parent && !parent->isAvatar() && parent->flagUsePhysics())) || (parent && !parent->isAvatar() && parent->flagUsePhysics()))
{ {
show_highlight = true;
gViewerWindow->setCursor(UI_CURSOR_TOOLGRAB); gViewerWindow->setCursor(UI_CURSOR_TOOLGRAB);
LL_DEBUGS("UserInput") << "hover handled by LLToolPie (inactive)" << LL_ENDL; LL_DEBUGS("UserInput") << "hover handled by LLToolPie (inactive)" << LL_ENDL;
} }
...@@ -806,7 +794,6 @@ BOOL LLToolPie::handleHover(S32 x, S32 y, MASK mask) ...@@ -806,7 +794,6 @@ BOOL LLToolPie::handleHover(S32 x, S32 y, MASK mask)
&& ((object && object->flagHandleTouch()) || (parent && parent->flagHandleTouch())) && ((object && object->flagHandleTouch()) || (parent && parent->flagHandleTouch()))
&& (!object || !object->isAvatar())) && (!object || !object->isAvatar()))
{ {
show_highlight = true;
gViewerWindow->setCursor(UI_CURSOR_HAND); gViewerWindow->setCursor(UI_CURSOR_HAND);
LL_DEBUGS("UserInput") << "hover handled by LLToolPie (inactive)" << LL_ENDL; LL_DEBUGS("UserInput") << "hover handled by LLToolPie (inactive)" << LL_ENDL;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment