[Bf-blender-cvs] [04eb24a] master: Fix T37718: Texture compression missing
Sergey Sharybin
noreply at git.blender.org
Tue Dec 17 17:18:34 CET 2013
Commit: 04eb24a33737b9d9e29ec758c3db8fb81d140fc1
Author: Sergey Sharybin
Date: Tue Dec 17 22:16:53 2013 +0600
http://developer.blender.org/rB04eb24a33737b9d9e29ec758c3db8fb81d140fc1
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.
===================================================================
M source/blender/blenkernel/intern/image.c
===================================================================
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c
index 17eab69..51c70e8 100644
--- a/source/blender/blenkernel/intern/image.c
+++ b/source/blender/blenkernel/intern/image.c
@@ -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
More information about the Bf-blender-cvs
mailing list