aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolpie.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lltoolpie.cpp')
-rw-r--r--linden/indra/newview/lltoolpie.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/linden/indra/newview/lltoolpie.cpp b/linden/indra/newview/lltoolpie.cpp
index b7d762c..429b9d4 100644
--- a/linden/indra/newview/lltoolpie.cpp
+++ b/linden/indra/newview/lltoolpie.cpp
@@ -422,13 +422,16 @@ BOOL LLToolPie::pickAndShowMenu(BOOL always_show)
422 } 422 }
423// [/RLVa:KB] 423// [/RLVa:KB]
424 } 424 }
425 else if (object->isAttachment() && !object->isHUDAttachment()) 425 else if (object->isAttachment())
426 { 426 {
427 gPieAttachment->show(x, y, mPieMouseButtonDown); 427 if (object->isHUDAttachment())
428 } 428 {
429 else if (object->isHUDAttachment()) 429 gPieHUD->show(x, y, mPieMouseButtonDown);
430 { 430 }
431 gPieHUD->show(x, y, mPieMouseButtonDown); 431 else
432 {
433 gPieAttachment->show(x, y, mPieMouseButtonDown);
434 }
432 } 435 }
433 else 436 else
434 { 437 {
@@ -802,8 +805,8 @@ BOOL LLToolPie::handleDoubleClick(S32 x, S32 y, MASK mask)
802 } 805 }
803 806
804 const LLTextureEntry* tep = object->getTE(mPick.mObjectFace); 807 const LLTextureEntry* tep = object->getTE(mPick.mObjectFace);
805 viewer_media_t media_impl = LLViewerMedia::getMediaImplFromTextureID(tep->getID()); 808 viewer_media_t media_impl = tep ? LLViewerMedia::getMediaImplFromTextureID(tep->getID()) : NULL;
806 if (tep && media_impl.notNull() && media_impl->hasMedia()) 809 if (media_impl.notNull() && media_impl->hasMedia())
807 { 810 {
808 LL_DEBUGS("DoubleClicks") << "Double clicked running parcel media" << LL_ENDL; 811 LL_DEBUGS("DoubleClicks") << "Double clicked running parcel media" << LL_ENDL;
809 return FALSE; 812 return FALSE;