Fix #34145: 'Save Image' incorrect file type.
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 7 Feb 2013 07:24:02 +0000 (07:24 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 7 Feb 2013 07:24:02 +0000 (07:24 +0000)
Own mistake in 16bit PNG support, wrong bitmask for custom flags

ftype really needs cleanup..

source/blender/imbuf/IMB_imbuf_types.h

index 49e2e7f..e30f161 100644 (file)
@@ -175,7 +175,7 @@ typedef struct ImBuf {
  * The bit flag is stored in the ImBuf.ftype variable.
  * Note that the lower 11 bits is used for storing custom flags
  */
-#define IB_CUSTOM_FLAGS_MASK 0x400
+#define IB_CUSTOM_FLAGS_MASK 0x7ff
 
 #define PNG                            (1 << 30)
 #define TGA                            (1 << 28)