From 76c035bd11ac6dc07796566aa2ebce9acf799d68 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 23 Dec 2008 02:07:13 +0000 Subject: 2.5: Data Context * Worked out data context implementation more, now with initial context callbacks implemented for the screen and 3d view. * For collections, switch from iterators to simpler ListBase. Though that still means it uses LinkData* rather than the actual Object* for example, since those can only be part of one list. So I added a macro as well to make iteration easier when possible. CTX_DATA_BEGIN(C, Object*, ob, selected_objects) { printf("object name: %s\n", ob->id.name); } CTX_DATA_END; --- source/blender/makesdna/DNA_screen_types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/makesdna/DNA_screen_types.h') diff --git a/source/blender/makesdna/DNA_screen_types.h b/source/blender/makesdna/DNA_screen_types.h index a15c57d6700..af8597ba54d 100644 --- a/source/blender/makesdna/DNA_screen_types.h +++ b/source/blender/makesdna/DNA_screen_types.h @@ -60,6 +60,7 @@ typedef struct bScreen { short subwinactive; /* active subwindow */ struct wmTimer *animtimer; /* if set, screen has timer handler added in window */ + void *context; /* context callback */ short handler[8]; /* similar to space handler */ } bScreen; -- cgit v1.2.3