2.5: Data Context
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 23 Dec 2008 02:07:13 +0000 (02:07 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 23 Dec 2008 02:07:13 +0000 (02:07 +0000)
commit76c035bd11ac6dc07796566aa2ebce9acf799d68
treeef5a60d6e43e33850b190e3d47af2fcd5918c9e8
parent8d6c2e6ec0adb0e9beeee7f49111962245a0c278
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/blenkernel/BKE_context.h
source/blender/blenkernel/BKE_screen.h
source/blender/blenkernel/intern/context.c
source/blender/editors/screen/screen_context.c [new file with mode: 0644]
source/blender/editors/screen/screen_edit.c
source/blender/editors/screen/screen_intern.h
source/blender/editors/space_view3d/space_view3d.c
source/blender/makesdna/DNA_screen_types.h