Blender Git Commit Log

Git Commits -> Revision 76c035b

Revision 76c035b by Brecht Van Lommel (master)
December 23, 2008, 02:07 (GMT)
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: %sn", ob->id.name);
}
CTX_DATA_END;


Commit Details:

Full Hash: 76c035bd11ac6dc07796566aa2ebce9acf799d68
SVN Revision: 18022
Parent Commit: 8d6c2e6
Lines Changed: +232, -58

1 Added Path:

/source/blender/editors/screen/screen_context.c (+73, -0) (View)

7 Modified Paths:

/source/blender/blenkernel/BKE_context.h (+31, -26) (Diff)
/source/blender/blenkernel/BKE_screen.h (+2, -3) (Diff)
/source/blender/blenkernel/intern/context.c (+77, -29) (Diff)
/source/blender/editors/screen/screen_edit.c (+2, -0) (Diff)
/source/blender/editors/screen/screen_intern.h (+3, -0) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+43, -0) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021