diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-01-04 13:23:47 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-01-04 13:31:27 +0200 |
commit | 3290f16f29e503115b7eaeb2005cfdbba42668dd (patch) | |
tree | 571f47e765ebb3ca8ec922bdd0bff0c64b195fd8 /indra/newview/lltooldraganddrop.cpp | |
parent | 81a4c7598d5971b46826e37a0237a659b8895822 (diff) |
SL-18854 Fix drag'n drop of plain textures on faces in PBR mode
When in PBR 'mode', defaulted texture drops to diffuse channel
Diffstat (limited to 'indra/newview/lltooldraganddrop.cpp')
-rw-r--r-- | indra/newview/lltooldraganddrop.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/lltooldraganddrop.cpp b/indra/newview/lltooldraganddrop.cpp index 5c4f7f75bf..cde33a5f96 100644 --- a/indra/newview/lltooldraganddrop.cpp +++ b/indra/newview/lltooldraganddrop.cpp @@ -1202,7 +1202,7 @@ void LLToolDragAndDrop::dropTextureOneFace(LLViewerObject* hit_obj, if (gFloaterTools->getVisible() && panel_face) { - tex_channel = (tex_channel > -1) ? tex_channel : LLSelectMgr::getInstance()->getTextureChannel(); + tex_channel = (tex_channel > -1) ? tex_channel : panel_face->getTextureDropChannel(); switch (tex_channel) { |