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:
authorCampbell Barton <ideasman42@gmail.com>2014-01-16 20:50:41 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-01-16 20:52:25 +0400
commit79bed4d9d38cec46082a165061643884f41d4d91 (patch)
tree6966b3d2e2ba736915682d1f7e2217cf85fc5601 /source/blender/makesdna
parenta780e7f3f09ffec99600a518a17b219b5aaee2c6 (diff)
Code Cleanup: loop over ThemeSpace's where possible
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_userdef_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h
index 111477f155d..77b21a514b7 100644
--- a/source/blender/makesdna/DNA_userdef_types.h
+++ b/source/blender/makesdna/DNA_userdef_types.h
@@ -343,6 +343,7 @@ typedef struct bTheme {
ThemeUI tui;
/* Individual Spacetypes */
+ /* note: ensure UI_THEMESPACE_END is updated when adding */
ThemeSpace tbuts;
ThemeSpace tv3d;
ThemeSpace tfile;
@@ -368,6 +369,9 @@ typedef struct bTheme {
int active_theme_area, pad;
} 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))
+
/* for the moment only the name. may want to store options with this later */
typedef struct bAddon {
struct bAddon *next, *prev;