summaryrefslogtreecommitdiff
path: root/indra/newview/lltoolpie.cpp
diff options
context:
space:
mode:
authorDave Houlton <euclid@lindenlab.com>2019-12-16 12:47:19 -0700
committerDave Houlton <euclid@lindenlab.com>2019-12-16 12:47:19 -0700
commitf61a5c4642db8af5d80eacc0ca7a2062bf08e4f0 (patch)
treee644e1db27f9ea9043d4adeeafc3da5ebdd8e211 /indra/newview/lltoolpie.cpp
parentbc06a9acf91035903d497bdd66e9bb26859616be (diff)
parentd656d49a77eeb65ae537c954ea4009bc22da7b2b (diff)
Merge viewer-release 6.3.6 into viewwer-eep repo
Diffstat (limited to 'indra/newview/lltoolpie.cpp')
-rw-r--r--indra/newview/lltoolpie.cpp32
1 files changed, 2 insertions, 30 deletions
diff --git a/indra/newview/lltoolpie.cpp b/indra/newview/lltoolpie.cpp
index 54df5198c8..3955d7a72f 100644
--- a/indra/newview/lltoolpie.cpp
+++ b/indra/newview/lltoolpie.cpp
@@ -874,37 +874,9 @@ BOOL LLToolPie::handleDoubleClick(S32 x, S32 y, MASK mask)
static bool needs_tooltip(LLSelectNode* nodep)
{
- if (!nodep)
+ if (!nodep || !nodep->mValid)
return false;
-
- LLViewerObject* object = nodep->getObject();
- LLViewerObject *parent = (LLViewerObject *)object->getParent();
- if (object->flagHandleTouch()
- || (parent && parent->flagHandleTouch())
- || object->flagTakesMoney()
- || (parent && parent->flagTakesMoney())
- || object->flagAllowInventoryAdd()
- )
- {
- return true;
- }
-
- U8 click_action = final_click_action(object);
- if (click_action != 0)
- {
- return true;
- }
-
- if (nodep->mValid)
- {
- bool anyone_copy = anyone_copy_selection(nodep);
- bool for_sale = for_sale_selection(nodep);
- if (anyone_copy || for_sale)
- {
- return true;
- }
- }
- return false;
+ return true;
}