diff options
| author | Dave Parks <davep@lindenlab.com> | 2022-09-22 17:27:41 -0500 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2022-09-22 17:27:41 -0500 |
| commit | 0afc237de2b3c8286efda25f9ca72aa710bc81ef (patch) | |
| tree | 9cb3dd377963500eae8899723a4f6294f952235e /indra/newview/lltooldraganddrop.cpp | |
| parent | e5d463ca200bdfa93b8c65e588d490c2f23e3918 (diff) | |
| parent | 524e5f06b7665cf7b26f451998a418d2cfe9ae13 (diff) | |
Merge branch 'DRTVWR-559' of ssh://bitbucket.org/lindenlab/viewer into DRTVWR-559
Diffstat (limited to 'indra/newview/lltooldraganddrop.cpp')
| -rw-r--r-- | indra/newview/lltooldraganddrop.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/indra/newview/lltooldraganddrop.cpp b/indra/newview/lltooldraganddrop.cpp index 282c84d7fc..be42e6f2b2 100644 --- a/indra/newview/lltooldraganddrop.cpp +++ b/indra/newview/lltooldraganddrop.cpp @@ -1109,19 +1109,9 @@ void LLToolDragAndDrop::dropMaterialAllFaces(LLViewerObject* hit_obj, { return; } - - S32 num_faces = hit_obj->getNumTEs(); - 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(); - } + + hit_obj->setRenderMaterialIDs(asset_id); + dialog_refresh_all(); // send the update to the simulator hit_obj->sendTEUpdate(); } |
