summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelface.cpp
diff options
context:
space:
mode:
authorCosmic Linden <cosmic@lindenlab.com>2023-07-21 13:01:11 -0700
committerCosmic Linden <cosmic@lindenlab.com>2023-08-11 16:30:49 -0700
commite7e565dc6e7e0c666132ffffa4798b2cfc00d6a4 (patch)
tree0c142c10d50be9a52dba2f73f3b26865e829be24 /indra/newview/llpanelface.cpp
parent9be8103142dc16b58dcf930d5d1f70f49272837f (diff)
SL-20024: Put material in object inventory when material is no-modify or no-transfer
Diffstat (limited to 'indra/newview/llpanelface.cpp')
-rw-r--r--indra/newview/llpanelface.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/indra/newview/llpanelface.cpp b/indra/newview/llpanelface.cpp
index 837217387f..b633ccc5d5 100644
--- a/indra/newview/llpanelface.cpp
+++ b/indra/newview/llpanelface.cpp
@@ -3093,12 +3093,7 @@ void LLPanelFace::onSelectPbr(const LLSD& data)
{
id = pbr_ctrl->getImageAssetID();
}
- if (LLSelectMgr::getInstance()->selectionSetGLTFMaterial(id))
- {
- LLSelectedTEMaterial::setMaterialID(this, id);
- }
- else
- {
+ if (!LLSelectMgr::getInstance()->selectionSetGLTFMaterial(id))
refresh();
}
}