own fix r34446, was incorrect, fixed properly now.
authorCampbell Barton <ideasman42@gmail.com>
Sat, 22 Jan 2011 04:40:15 +0000 (04:40 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 22 Jan 2011 04:40:15 +0000 (04:40 +0000)
source/blender/makesdna/DNA_ID.h

index a0e56c6241f96f25e51d28dbc3b8c7a53d031307..7d4d3d7c333b56904864a22ff7b71f72d20f3359 100644 (file)
@@ -126,16 +126,13 @@ typedef struct Library {
 #define PREVIEW_MIPMAP_ZERO 0
 #define PREVIEW_MIPMAP_LARGE 1
 
-/* not saved, note 'PREVIEW_MIPMAPS' will break makesdna parsing.
- * replace with value if saving to blend files */
-#
-#
 typedef struct PreviewImage {
-       unsigned int w[PREVIEW_MIPMAPS];
-       unsigned int h[PREVIEW_MIPMAPS];
-       short changed[PREVIEW_MIPMAPS];
-       short changed_timestamp[PREVIEW_MIPMAPS];
-       unsigned int * rect[PREVIEW_MIPMAPS];
+       /* All values of 2 are really PREVIEW_MIPMAPS */
+       unsigned int w[2];
+       unsigned int h[2];
+       short changed[2];
+       short changed_timestamp[2];
+       unsigned int * rect[2];
 } PreviewImage;
 
 /**