Cleanup: correct UI_THEMESPACE_START/END macros
authorCampbell Barton <ideasman42@gmail.com>
Wed, 4 Sep 2019 17:16:09 +0000 (03:16 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 4 Sep 2019 17:16:09 +0000 (03:16 +1000)
source/blender/makesdna/DNA_userdef_types.h

index 8eabbc0df0d928d666e877f42939b76d3cd8ce86..bee4bec5fafcf673c71bb667c6e87d53214bc6d4 100644 (file)
@@ -465,8 +465,10 @@ typedef struct bTheme {
   char _pad0[4];
 } bTheme;
 
-#define UI_THEMESPACE_START(btheme) (CHECK_TYPE_INLINE(btheme, bTheme *), &((btheme)->tbuts))
-#define UI_THEMESPACE_END(btheme) (CHECK_TYPE_INLINE(btheme, bTheme *), (&((btheme)->tclip) + 1))
+#define UI_THEMESPACE_START(btheme) \
+  (CHECK_TYPE_INLINE(btheme, bTheme *), &((btheme)->space_properties))
+#define UI_THEMESPACE_END(btheme) \
+  (CHECK_TYPE_INLINE(btheme, bTheme *), (&((btheme)->space_statusbar) + 1))
 
 typedef struct bAddon {
   struct bAddon *next, *prev;