diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-12-17 20:16:53 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-12-17 20:16:53 +0400 |
commit | 04eb24a33737b9d9e29ec758c3db8fb81d140fc1 (patch) | |
tree | 051d8eed46f8f6eb61dc8814ba6e18908d1b05a9 /source | |
parent | 8e59beb815d1457f8f55b2d2f5997d194c52d403 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/image.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c index 17eab690d5e..51c70e8434a 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 |