aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-09-02 17:15:39 -0700
committerMcCabe Maxsted2010-09-02 17:15:39 -0700
commit27987f07f7c1c35abadc469ec336cbf91785cf20 (patch)
tree271f17ca986ea5aca13c4b5cf671fe2445435d2d /linden/indra/newview
parentAdded chatbar as commandline commands to spell check (diff)
downloadmeta-impy-27987f07f7c1c35abadc469ec336cbf91785cf20.zip
meta-impy-27987f07f7c1c35abadc469ec336cbf91785cf20.tar.gz
meta-impy-27987f07f7c1c35abadc469ec336cbf91785cf20.tar.bz2
meta-impy-27987f07f7c1c35abadc469ec336cbf91785cf20.tar.xz
Don't use 'rezplat' command on opensim since it currently doesn't work on any OS-based grid
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/chatbar_as_cmdline.cpp3
-rw-r--r--linden/indra/newview/floatercommandline.cpp9
2 files changed, 11 insertions, 1 deletions
diff --git a/linden/indra/newview/chatbar_as_cmdline.cpp b/linden/indra/newview/chatbar_as_cmdline.cpp
index 4e23b8a..aae4fbe 100644
--- a/linden/indra/newview/chatbar_as_cmdline.cpp
+++ b/linden/indra/newview/chatbar_as_cmdline.cpp
@@ -43,6 +43,7 @@
43#include "lluuid.h" 43#include "lluuid.h"
44#include "llviewercontrol.h" 44#include "llviewercontrol.h"
45 45
46#include "hippoGridManager.h"
46#include "material_codes.h" 47#include "material_codes.h"
47#include "llvolume.h" 48#include "llvolume.h"
48#include "object_flags.h" 49#include "object_flags.h"
@@ -557,7 +558,7 @@ bool cmd_line_chat(std::string revised_text, EChatType type)
557 { 558 {
558 gAgent.teleportHome(); 559 gAgent.teleportHome();
559 return false; 560 return false;
560 }else if(command == *sCmdLineChatbarRezPlatform) 561 }else if(command == *sCmdLineChatbarRezPlatform && gHippoGridManager->getConnectedGrid()->isSecondLife())
561 { 562 {
562 F32 width; 563 F32 width;
563 if (i >> width) cmdline_rezplat(false, width); 564 if (i >> width) cmdline_rezplat(false, width);
diff --git a/linden/indra/newview/floatercommandline.cpp b/linden/indra/newview/floatercommandline.cpp
index a700b62..c093a58 100644
--- a/linden/indra/newview/floatercommandline.cpp
+++ b/linden/indra/newview/floatercommandline.cpp
@@ -32,6 +32,7 @@
32 32
33#include "floatercommandline.h" 33#include "floatercommandline.h"
34 34
35#include "hippoGridManager.h"
35#include "lluictrlfactory.h" 36#include "lluictrlfactory.h"
36#include "llviewercontrol.h" 37#include "llviewercontrol.h"
37 38
@@ -64,6 +65,14 @@ BOOL FloaterCommandLine::postBuild()
64 childSetCommitCallback("CmdLineChatbarAO", onCommitApplyControl); 65 childSetCommitCallback("CmdLineChatbarAO", onCommitApplyControl);
65 childSetCommitCallback("CmdLineChatbarClearChat", onCommitApplyControl); 66 childSetCommitCallback("CmdLineChatbarClearChat", onCommitApplyControl);
66 67
68 // hide options that don't work on non-SL-based grids
69 if (!gHippoGridManager->getConnectedGrid()->isSecondLife())
70 {
71 childSetEnabled("CmdLineChatbarRezPlatform", FALSE);
72 childSetEnabled("loltxt6", FALSE);
73 childSetEnabled("CmdLineChatbarPlatformSize", FALSE);
74 }
75
67 return TRUE; 76 return TRUE;
68} 77}
69 78