From 66291513de96bf971e770089097bddb4a828259b Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Sun, 10 Apr 2011 19:47:49 -0700 Subject: Little bit of cleanup for pie menu hud --- linden/indra/newview/lltoolpie.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'linden/indra/newview/lltoolpie.cpp') diff --git a/linden/indra/newview/lltoolpie.cpp b/linden/indra/newview/lltoolpie.cpp index b7d762c..a70169c 100644 --- a/linden/indra/newview/lltoolpie.cpp +++ b/linden/indra/newview/lltoolpie.cpp @@ -422,13 +422,16 @@ BOOL LLToolPie::pickAndShowMenu(BOOL always_show) } // [/RLVa:KB] } - else if (object->isAttachment() && !object->isHUDAttachment()) + else if (object->isAttachment()) { - gPieAttachment->show(x, y, mPieMouseButtonDown); - } - else if (object->isHUDAttachment()) - { - gPieHUD->show(x, y, mPieMouseButtonDown); + if (object->isHUDAttachment()) + { + gPieHUD->show(x, y, mPieMouseButtonDown); + } + else + { + gPieAttachment->show(x, y, mPieMouseButtonDown); + } } else { -- cgit v1.1