summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2019-12-03 17:31:46 +0200
committermaxim_productengine <mnikolenko@productengine.com>2019-12-03 17:31:46 +0200
commit0a411b0b1a89001afbe009c17b5aac70748289c6 (patch)
treedf3aa321b7ee92de31da931098aa56bebd139e7e /indra
parentf67a88314ba957827bdeab9567e01ef6d55c233e (diff)
SL-12374 FIXED [Project Copy/Paste] Normal & specular texture UUIDs are copied to clipboard from no-copy or no-transfer objects
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpanelface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp
index da471b0b62..2aba115e3f 100644
--- a/indra/newview/llpanelface.cpp
+++ b/indra/newview/llpanelface.cpp
@@ -2988,7 +2988,7 @@ void LLPanelFace::onCopyFaces()
// Replace no-copy textures, destination texture will get used instead if available
if (mat_data.has("NormMap"))
{
- LLUUID id = te_data["material"]["NormMap"].asUUID();
+ LLUUID id = mat_data["NormMap"].asUUID();
if (id.notNull() && !LLPanelObject::canCopyTexture(id))
{
mat_data["NormMap"] = LLUUID(gSavedSettings.getString( "DefaultObjectTexture" ));
@@ -2998,7 +2998,7 @@ void LLPanelFace::onCopyFaces()
}
if (mat_data.has("SpecMap"))
{
- LLUUID id = te_data["material"]["SpecMap"].asUUID();
+ LLUUID id = mat_data["SpecMap"].asUUID();
if (id.notNull() && !LLPanelObject::canCopyTexture(id))
{
mat_data["SpecMap"] = LLUUID(gSavedSettings.getString( "DefaultObjectTexture" ));