From 4db56b229f37dc4637bf403baa684ed57db9e30d Mon Sep 17 00:00:00 2001 From: Todd Stinson Date: Fri, 17 Feb 2012 10:42:06 -0800 Subject: PATH-284: Ensuring that path testing only occurs when the console window is show with the testing panel visible. --- indra/newview/llfloaterpathfindingconsole.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'indra/newview') diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp index 5db052e448..cdd96b8b8e 100644 --- a/indra/newview/llfloaterpathfindingconsole.cpp +++ b/indra/newview/llfloaterpathfindingconsole.cpp @@ -60,6 +60,8 @@ #define XUI_CHARACTER_TYPE_C 3 #define XUI_CHARACTER_TYPE_D 4 +#define XUI_TEST_TAB_INDEX 1 + const int CURRENT_REGION = 99; const int MAX_OBSERVERS = 10; @@ -180,7 +182,7 @@ BOOL LLFloaterPathfindingConsole::handleAnyMouseClick(S32 x, S32 y, MASK mask, E BOOL LLFloaterPathfindingConsole::isGeneratePathMode(MASK mask, EClickType clicktype, BOOL down) const { - return (getVisible() && (mEditTestTabContainer->getCurrentPanelIndex() == 1) && + return (isShown() && (mEditTestTabContainer->getCurrentPanelIndex() == XUI_TEST_TAB_INDEX) && (clicktype == LLMouseHandler::CLICK_LEFT) && down && (((mask & MASK_CONTROL) && !(mask & (~MASK_CONTROL))) || ((mask & MASK_SHIFT) && !(mask & (~MASK_SHIFT))))); -- cgit v1.2.3