Fix for GLTF scenes not uploading (#1994)
parent
067c400803
commit
98941831e4
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -148,6 +148,16 @@ void GLTFSceneManager::uploadSelection()
|
|||
raw = image.mTexture->getRawImage();
|
||||
}
|
||||
|
||||
if (raw.isNull())
|
||||
{
|
||||
raw = image.mTexture->getSavedRawImage();
|
||||
}
|
||||
|
||||
if (raw.isNull())
|
||||
{
|
||||
image.mTexture->readbackRawImage();
|
||||
}
|
||||
|
||||
if (raw.notNull())
|
||||
{
|
||||
LLPointer<LLImageJ2C> j2c = LLViewerTextureList::convertToUploadFile(raw);
|
||||
|
|
|
|||
Loading…
Reference in New Issue