summaryrefslogtreecommitdiff
path: root/indra/newview/llgltfmateriallist.cpp
diff options
context:
space:
mode:
authorBrad Linden <46733234+brad-linden@users.noreply.github.com>2024-04-16 11:32:57 -0700
committerGitHub <noreply@github.com>2024-04-16 11:32:57 -0700
commitd46811d60d8fca4a9908b4e989b14905345928bd (patch)
tree17ad4d20832d8c788537bd17e0ece862a16031e6 /indra/newview/llgltfmateriallist.cpp
parentbed05f53ae64a9b24ab2906a732929098761ffa3 (diff)
parentee33a43daee924d32bf5de58c264a6d384ef7451 (diff)
Merge pull request #1230 from beqjanus/StopVoCacheTPHangs
Stop vo cache related tp hangs
Diffstat (limited to 'indra/newview/llgltfmateriallist.cpp')
-rw-r--r--indra/newview/llgltfmateriallist.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llgltfmateriallist.cpp b/indra/newview/llgltfmateriallist.cpp
index f07ea7ee4f..e97eb552cf 100644
--- a/indra/newview/llgltfmateriallist.cpp
+++ b/indra/newview/llgltfmateriallist.cpp
@@ -244,7 +244,12 @@ void LLGLTFMaterialList::applyOverrideMessage(LLMessageSystem* msg, const std::s
}
}
- region->cacheFullUpdateGLTFOverride(cache);
+ // Workaround for server sending empty overrides.
+ if(cache.mSides.size() > 0)
+ {
+ region->cacheFullUpdateGLTFOverride(cache);
+ LL_DEBUGS("GLTF") << "GLTF Material Override: " << cache.mObjectId << " " << cache.mLocalId << " " << cache.mRegionHandle << " (sides:" << (cache.mSides.size()) << ")" << LL_ENDL;
+ }
}
}