Commit: 36b7f5d27e7aec2300d0c9f44f724c479769eb98
Author: Lukas Stockner
Date:   Mon Feb 10 16:12:45 2020 +0100
Branches: blender-v2.82-release
https://developer.blender.org/rB36b7f5d27e7aec2300d0c9f44f724c479769eb98

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.

===================================================================

M       source/blender/editors/space_image/image_ops.c

===================================================================

diff --git a/source/blender/editors/space_image/image_ops.c 
b/source/blender/editors/space_image/image_ops.c
index e6bd563b02f..18e084729bd 100644
--- a/source/blender/editors/space_image/image_ops.c
+++ b/source/blender/editors/space_image/image_ops.c
@@ -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 {

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to