From 98941831e4afab1cd5ccb5bab995a671df320f72 Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Thu, 11 Jul 2024 11:36:36 -0500 Subject: Fix for GLTF scenes not uploading (#1994) --- indra/newview/gltf/asset.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'indra/newview/gltf/asset.cpp') diff --git a/indra/newview/gltf/asset.cpp b/indra/newview/gltf/asset.cpp index 5ba5951064..c210b9c61d 100644 --- a/indra/newview/gltf/asset.cpp +++ b/indra/newview/gltf/asset.cpp @@ -991,6 +991,12 @@ bool Image::prep(Asset& asset) return false; } + if (!asset.mFilename.empty()) + { // local preview, boost image so it doesn't discard and force to save raw image in case we save out or upload + mTexture->setBoostLevel(LLViewerTexture::BOOST_PREVIEW); + mTexture->forceToSaveRawImage(0, F32_MAX); + } + return true; } -- cgit v1.2.3