Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-08-12 11:47:44 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-08-12 11:47:44 +0400
commit98e5e544b55d2d358fbf38df27e06a5dc3b36406 (patch)
tree1bd66fa339c692c8a19789dd58151765b87ca3d4 /source/blender/makesdna/DNA_image_types.h
parent4fbe4261514e5dd896cf6fa213c838a184d0bc9a (diff)
Fix #36408: Setting `image.colorspace_settings.name` changes saved alpha
Issue was caused by reload caused by input colorspace change. For generated images generated alpha flags weren't saved to DNA, which lead to fallback from 32 bit depth to 24 when doing any kind reload of generated image. The same alpha loss happens when you save .blend file with generated images. Now added generated depth to DNA, so reload image and .blend file wouldn't loss alpha.
Diffstat (limited to 'source/blender/makesdna/DNA_image_types.h')
-rw-r--r--source/blender/makesdna/DNA_image_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_image_types.h b/source/blender/makesdna/DNA_image_types.h
index 456196771a6..dae520f458d 100644
--- a/source/blender/makesdna/DNA_image_types.h
+++ b/source/blender/makesdna/DNA_image_types.h
@@ -106,7 +106,7 @@ typedef struct Image {
/* for generated images */
int gen_x, gen_y;
char gen_type, gen_flag;
- char gen_pad[2];
+ short gen_depth;
/* display aspect - for UV editing images resized for faster openGL display */
float aspx, aspy;