SL-18458 Fix for one failure mode of overrides getting applied before base material is set.

master
Dave Parks 2023-03-23 11:39:45 -05:00
parent d423263d54
commit af57bbf0ca
1 changed files with 6 additions and 3 deletions

View File

@ -5670,6 +5670,12 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group)
continue;
}
// HACK -- brute force this check every time a drawable gets rebuilt
for (S32 i = 0; i < drawablep->getNumFaces(); ++i)
{
vobj->updateTEMaterialTextures(i);
}
// apply any pending material overrides
gGLTFMaterialList.applyQueuedOverrides(vobj);
@ -5754,9 +5760,6 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group)
{
continue;
}
// HACK -- brute force this check every time a drawable gets rebuilt
vobj->updateTEMaterialTextures(i);
#if 0
#if LL_RELEASE_WITH_DEBUG_INFO
const LLUUID pbr_id( "49c88210-7238-2a6b-70ac-92d4f35963cf" );