fix for warning
authorCampbell Barton <ideasman42@gmail.com>
Tue, 17 May 2011 06:51:31 +0000 (06:51 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 17 May 2011 06:51:31 +0000 (06:51 +0000)
source/blender/makesdna/DNA_ID.h

index d8f254aa1876b73b6e48083902be66c690e88ba5..4cf9f47041b7541b6765495bb9069e950e3fdb51 100644 (file)
@@ -126,8 +126,8 @@ typedef struct Library {
 enum eIconSizes {
        ICON_SIZE_ICON,
        ICON_SIZE_PREVIEW,
 enum eIconSizes {
        ICON_SIZE_ICON,
        ICON_SIZE_PREVIEW,
-       NUM_ICON_SIZES
 };
 };
+#define NUM_ICON_SIZES (ICON_SIZE_PREVIEW + 1)
 
 typedef struct PreviewImage {
        /* All values of 2 are really NUM_ICON_SIZES */
 
 typedef struct PreviewImage {
        /* All values of 2 are really NUM_ICON_SIZES */