fix for SH-761: Texture Saving Does Not Work

master
Xiaohong Bao 2011-01-18 16:46:33 -07:00
parent c602fed9b7
commit c46cbafb15
1 changed files with 2 additions and 0 deletions

View File

@ -273,6 +273,8 @@ void LLPreviewTexture::saveAs()
mSaveFileName = file_picker.getFirstFile();
mLoadingFullImage = TRUE;
getWindow()->incBusyCount();
mImage->forceToSaveRawImage(0) ;//re-fetch the raw image if the old one is removed.
mImage->setLoadedCallback( LLPreviewTexture::onFileLoadedForSave,
0, TRUE, FALSE, new LLUUID( mItemUUID ), &mCallbackTextureList );
}