From d2dbd068fe99d88c371588565af1b1eaeb02441e Mon Sep 17 00:00:00 2001 From: Rider Linden Date: Tue, 25 Aug 2026 15:18:30 -0700 Subject: Issue #6180: If the run state is missing from the save message, use the old run state. --- indra/newview/llscripteditorws.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'indra/newview/llscripteditorws.cpp') diff --git a/indra/newview/llscripteditorws.cpp b/indra/newview/llscripteditorws.cpp index f886be819f..01f0e60a49 100644 --- a/indra/newview/llscripteditorws.cpp +++ b/indra/newview/llscripteditorws.cpp @@ -1523,7 +1523,11 @@ LLSD LLScriptEditorWSServer::saveScript(LLViewerObject* prim, LLInventoryItem* i [&, prim_id, item_id](const std::string& pump_name) { auto [on_success, on_failure] = make_asset_upload_callbacks(pump_name); - bool is_running = params.has("running") ? params["running"].asBoolean() : false; + bool is_running = item->getIsRunning(); + if (params.has("running")) + { + is_running = params["running"].asBoolean(); + } LLResourceUploadInfo::ptr_t uploadInfo(std::make_shared( prim_id, item_id, compile_target, is_running, LLUUID::null, content, -- cgit v1.3