From 6fb0c158dea0aed811762da910a6cd0c0e7f393c Mon Sep 17 00:00:00 2001 From: Shyotl Date: Fri, 3 May 2013 21:42:14 -0500 Subject: [PATCH] Fix rightclicking fully transparent prims when show-transparent is enabled. --- indra/newview/llviewerwindow.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 8d583108f..993405f5a 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -3671,6 +3671,15 @@ LLPickInfo LLViewerWindow::pickImmediate(S32 x, S32 y_from_bot, BOOL pick_trans return LLPickInfo(); } + // push back pick info object + BOOL in_build_mode = gFloaterTools && gFloaterTools->getVisible(); + if (in_build_mode || LLDrawPoolAlpha::sShowDebugAlpha) + { + // build mode allows interaction with all transparent objects + // "Show Debug Alpha" means no object actually transparent + pick_transparent = TRUE; + } + // shortcut queueing in mPicks and just update mLastPick in place MASK key_mask = gKeyboard->currentMask(TRUE); mLastPick = LLPickInfo(LLCoordGL(x, y_from_bot), key_mask, pick_transparent, TRUE, NULL);