summaryrefslogtreecommitdiff
path: root/indra/newview/lllocalbitmaps.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2025-04-09 12:37:41 +0800
committerErik Kundiman <erik@megapahit.org>2025-04-09 12:37:41 +0800
commit381fecfd3e6f724ba0d3ae73ff6b1645521681e9 (patch)
tree19d621c92d8ecdeae7cbea3b6bedbc367febf9bb /indra/newview/lllocalbitmaps.cpp
parent38e93309358700deb15b6b32b6395d1bc08e5525 (diff)
parent632a8648ca5456448499a96dcc58c40f4ff80d95 (diff)
Merge tag 'Second_Life_Release#632a8648-2025.03' into 2025.03
Diffstat (limited to 'indra/newview/lllocalbitmaps.cpp')
-rw-r--r--indra/newview/lllocalbitmaps.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/lllocalbitmaps.cpp b/indra/newview/lllocalbitmaps.cpp
index f08582e860..101ee215cb 100644
--- a/indra/newview/lllocalbitmaps.cpp
+++ b/indra/newview/lllocalbitmaps.cpp
@@ -680,11 +680,15 @@ void LLLocalBitmap::updateGLTFMaterials(LLUUID old_id, LLUUID new_id)
// do not create a new material, reuse existing pointer
// so that mTextureEntires remains untouched
LLGLTFMaterial* render_mat = entry->getGLTFRenderMaterial();
- if (render_mat)
+ if (render_mat && render_mat != mat)
{
*render_mat = *mat;
render_mat->applyOverride(*override_mat); // can update mGLTFMaterialWithLocalTextures
}
+ else
+ {
+ LL_WARNS() << "A TE had an override, but no render material" << LL_ENDL;
+ }
}
}
}