summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-11-10 22:18:30 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-11-10 22:18:56 +0200
commit424593c05e72061ac74969726788140c5ca7192f (patch)
tree94cad599bb3aa2d1822bbe0cf5d6042281a7fb5c /indra/newview
parent12a86f89e5345569d5cc36941ec7774fe54af298 (diff)
SL-18602 Update server params on drag n drop
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewerobject.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp
index a6e4b2b849..47cb9e9732 100644
--- a/indra/newview/llviewerobject.cpp
+++ b/indra/newview/llviewerobject.cpp
@@ -7225,6 +7225,18 @@ void LLViewerObject::setRenderMaterialID(S32 te_in, const LLUUID& id, bool updat
{
param_block->setMaterial(te, id);
}
+
+ if (update_server)
+ {
+ // If 'in use' changes, it will send an update itself.
+ bool in_use_changed = setParameterEntryInUse(LLNetworkData::PARAMS_RENDER_MATERIAL, !param_block->isEmpty(), true);
+
+ if (!in_use_changed)
+ {
+ // In use didn't change, but the parameter did, send an update
+ parameterChanged(LLNetworkData::PARAMS_RENDER_MATERIAL, param_block, !param_block->isEmpty(), true);
+ }
+ }
}
}