From 69d7c0f7efa648b0016baa98ccbe584cb91203ff Mon Sep 17 00:00:00 2001 From: Cosmic Linden Date: Mon, 11 Nov 2024 10:45:47 -0800 Subject: secondlife/viewer#2570: Fix baked texture shared between avatars when in PBR material --- indra/newview/llfetchedgltfmaterial.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'indra/newview/llfetchedgltfmaterial.cpp') diff --git a/indra/newview/llfetchedgltfmaterial.cpp b/indra/newview/llfetchedgltfmaterial.cpp index 558fc92018..a05f725673 100644 --- a/indra/newview/llfetchedgltfmaterial.cpp +++ b/indra/newview/llfetchedgltfmaterial.cpp @@ -222,6 +222,14 @@ void LLFetchedGLTFMaterial::updateTextureTracking() } } +void LLFetchedGLTFMaterial::clearFetchedTextures() +{ + mBaseColorTexture = nullptr; + mNormalTexture = nullptr; + mMetallicRoughnessTexture = nullptr; + mEmissiveTexture = nullptr; +} + void LLFetchedGLTFMaterial::materialBegin() { llassert(!mFetching); -- cgit v1.3