summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerobject.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-10-22 15:25:03 -0500
committerDave Parks <davep@lindenlab.com>2022-10-22 15:25:03 -0500
commit88659e9fe793a02fb4edcbf8ef07307c25119604 (patch)
tree101a4f72c45ce3bce4bde6b3a391d32e69ccf70a /indra/newview/llviewerobject.cpp
parent7135934e50bf2727c2366687af7427d44483e984 (diff)
SL-18105 When saving an object's material to inventory, save the version that as overrides applied.
Diffstat (limited to 'indra/newview/llviewerobject.cpp')
-rw-r--r--indra/newview/llviewerobject.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp
index eaf0287dae..603dcc4fa7 100644
--- a/indra/newview/llviewerobject.cpp
+++ b/indra/newview/llviewerobject.cpp
@@ -5333,6 +5333,9 @@ S32 LLViewerObject::setTEGLTFMaterialOverride(U8 te, LLGLTFMaterial* override_ma
tep->setGLTFMaterialOverride(override_mat);
+ // if override mat exists, we must also have a source mat
+ llassert(override_mat ? src_mat : true);
+
if (override_mat && src_mat)
{
LLFetchedGLTFMaterial* render_mat = new LLFetchedGLTFMaterial(*src_mat);