Fix T37718: Texture compression missing
Make sure image will saved as (not over) after changing it's type to Generated by clearing image's path in signal handler.
This commit is contained in:
parent
8e59beb815
commit
04eb24a337
Notes:
blender-bot
2023-02-14 11:31:04 +01:00
Referenced by issue #37718, texture compression missing
|
@ -2277,6 +2277,15 @@ void BKE_image_signal(Image *ima, ImageUser *iuser, int signal)
|
|||
IMB_freeImBuf(ibuf);
|
||||
}
|
||||
}
|
||||
|
||||
/* Changing source type to generated will likely change file format
|
||||
* used by generated image buffer. Saving different file format to
|
||||
* the old name might confuse other applications.
|
||||
*
|
||||
* Here we ensure original image path wouldn't be used when saving
|
||||
* generated image.
|
||||
*/
|
||||
ima->name[0] = '\0';
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
|
Loading…
Reference in New Issue