Fix T73713: Tiled textures (UDIM) getting lost when saving the .blend but not the textures
The issue here is simple, IMA_SRC_TILED was missing from a check for whether the image should be saved. Note that tiled images won't be automatically saved if they have never been saved before. For single images this is handled by packing them, but packing of tiled images isn't supported yet. However, in that case the file closing dialog will at least show a warning now instead of completely ignoring tiled images.
This commit is contained in:
@@ -2510,7 +2510,7 @@ static bool image_should_be_saved_when_modified(Image *ima)
|
||||
static bool image_should_be_saved(Image *ima, bool *is_format_writable)
|
||||
{
|
||||
if (BKE_image_is_dirty_writable(ima, is_format_writable) &&
|
||||
(ima->source == IMA_SRC_FILE || ima->source == IMA_SRC_GENERATED)) {
|
||||
ELEM(ima->source, IMA_SRC_FILE, IMA_SRC_GENERATED, IMA_SRC_TILED)) {
|
||||
return image_should_be_saved_when_modified(ima);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user