summaryrefslogtreecommitdiff
path: root/indra/newview/lltooldraganddrop.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-09-14 00:28:28 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-09-14 01:37:46 +0300
commit5034c565bf627b4ecaac44376566212f432d97ff (patch)
treeeba38e271b1b68d9477421926fe6e4cf0a31794d /indra/newview/lltooldraganddrop.cpp
parent5a10b11b0d306334cd80f52f267ca8c525672062 (diff)
SL-18044 (PBR) No-copy textures not applying to objects
Diffstat (limited to 'indra/newview/lltooldraganddrop.cpp')
-rw-r--r--indra/newview/lltooldraganddrop.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/lltooldraganddrop.cpp b/indra/newview/lltooldraganddrop.cpp
index ab54e2afc6..282c84d7fc 100644
--- a/indra/newview/lltooldraganddrop.cpp
+++ b/indra/newview/lltooldraganddrop.cpp
@@ -1114,6 +1114,11 @@ void LLToolDragAndDrop::dropMaterialAllFaces(LLViewerObject* hit_obj,
for (S32 face = 0; face < num_faces; face++)
{
// update viewer side material in anticipation of update from simulator
+
+ // TODO: fix this!
+ // Calling setRenderMaterialID multiple times sends material param
+ // updates multiple times and can create race condition.
+ // Send update only once!
hit_obj->setRenderMaterialID(face, asset_id);
dialog_refresh_all();
}