summaryrefslogtreecommitdiff
path: root/indra/newview/llpreviewscript.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2025-09-24 07:54:29 -0700
committerRider Linden <rider@lindenlab.com>2025-10-07 09:19:39 -0700
commite750c58a0e73c9363f649e42a47ad430f65c169b (patch)
tree49a341524a18a535a0879edffd5ac2329d7d5d2f /indra/newview/llpreviewscript.cpp
parent0d7ca7ff2d0880022ec9b28d56ffc7929981b66f (diff)
Changes to the message protocol for script.compiled and language requests.
Diffstat (limited to 'indra/newview/llpreviewscript.cpp')
-rw-r--r--indra/newview/llpreviewscript.cpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp
index f17b2aeed1..9aac1742d5 100644
--- a/indra/newview/llpreviewscript.cpp
+++ b/indra/newview/llpreviewscript.cpp
@@ -1500,8 +1500,6 @@ void LLScriptEdCore::setAssociatedExperience( const LLUUID& experience_id )
mAssociatedExperience = experience_id;
}
-
-
void LLLiveLSLEditor::requestExperiences()
{
if (!getIsModifiable())
@@ -1719,6 +1717,15 @@ void LLScriptEdContainer::unsubscribeScript()
}
}
+void LLScriptEdContainer::sendCompileResults(LLSD& params)
+{
+ auto server = mWebSocketServer.lock();
+ if (server)
+ {
+ std::string script_id_hash_str(getUniqueHash());
+ server->sendCompileResults(script_id_hash_str, params);
+ }
+}
/// ---------------------------------------------------------------------------
/// LLPreviewLSL
@@ -1957,6 +1964,7 @@ void LLPreviewLSL::finishedLSLUpload(LLUUID itemId, LLSD response)
{
preview->callbackLSLCompileFailed(response["errors"]);
}
+ preview->sendCompileResults(response);
}
}
@@ -1980,6 +1988,12 @@ bool LLPreviewLSL::failedLSLUpload(LLUUID itemId, LLUUID taskId, LLSD response,
LLSD errors;
errors.append(LLTrans::getString("UploadFailed") + reason);
preview->callbackLSLCompileFailed(errors);
+
+ LLSD message;
+ message["compiled"] = false;
+ message["errors"] = errors;
+ preview->sendCompileResults(message);
+
return true;
}
@@ -2514,6 +2528,8 @@ void LLLiveLSLEditor::finishLSLUpload(LLUUID itemId, LLUUID taskId, LLUUID newAs
{
preview->callbackLSLCompileFailed(response["errors"]);
}
+ response["is_running"] = isRunning;
+ preview->sendCompileResults(response);
}
}