From 414faf61fee685a9729d7ab67fc1bbe70400d3ee Mon Sep 17 00:00:00 2001 From: Ansariel Date: Thu, 10 Apr 2014 13:56:22 +0200 Subject: [PATCH] FIRE-9677: Make z component in gtp command optional and use current avatar height if omitted --- indra/newview/chatbar_as_cmdline.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/indra/newview/chatbar_as_cmdline.cpp b/indra/newview/chatbar_as_cmdline.cpp index 1a6370d233..319a969fe6 100644 --- a/indra/newview/chatbar_as_cmdline.cpp +++ b/indra/newview/chatbar_as_cmdline.cpp @@ -467,8 +467,12 @@ bool cmd_line_chat(std::string revised_text, EChatType type, bool from_gesture) if(command == std::string(sFSCmdLinePos)) { F32 x, y, z; - if (i >> x && i >> y && i >> z) + if (i >> x && i >> y) { + if (!(i >> z)) + { + z = gAgent.getPositionGlobal().mdV[VZ]; + } LLViewerRegion* agentRegionp = gAgent.getRegion(); if (agentRegionp) {