diff options
author | Todd Stinson <stinson@lindenlab.com> | 2012-02-17 10:42:06 -0800 |
---|---|---|
committer | Todd Stinson <stinson@lindenlab.com> | 2012-02-17 10:42:06 -0800 |
commit | 4db56b229f37dc4637bf403baa684ed57db9e30d (patch) | |
tree | 2573c6e36630c5ae46ba08fe8154c325738e4244 /indra/newview | |
parent | bbf707764f6e1b4473a80edd566946ec0532c304 (diff) |
PATH-284: Ensuring that path testing only occurs when the console window is show with the testing panel visible.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llfloaterpathfindingconsole.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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)))));
|