diff options
| author | Rider Linden <rider@lindenlab.com> | 2026-08-25 15:18:30 -0700 |
|---|---|---|
| committer | Rider Linden <rider@lindenlab.com> | 2026-08-25 15:18:30 -0700 |
| commit | d2dbd068fe99d88c371588565af1b1eaeb02441e (patch) | |
| tree | c5ccf5064b1a17310c78dbc00bb432dbb52dcb87 /indra/newview/llscripteditorws.cpp | |
| parent | f6f5cd0f888dd8ec53821aa4f26e307b51465da0 (diff) | |
Issue #6180: If the run state is missing from the save message, use the old run state.
Diffstat (limited to 'indra/newview/llscripteditorws.cpp')
| -rw-r--r-- | indra/newview/llscripteditorws.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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<LLScriptAssetUpload>( prim_id, item_id, compile_target, is_running, LLUUID::null, content, |
