Blender Git Loki
Git Commits -> Revision ecc4e55
Revision ecc4e55 by Brecht Van Lommel (master) December 18, 2008, 02:56 (GMT) |
2.5 Context API This adds the context API as described here. The main practical change now is that C is not longer directly accessible but has to be accessed through accessor functions. This basically adds the implementation of the API and adaption of existing code with some minor changes. The next task of course is to actually use this design to cleanup of bad level calls and global access, in blenkernel, blenloader. http://wiki.blender.org/index.php/BlenderDev/Blender2.5/Context Error, Warning and Debug Info Reporting This adds the error reporting API as described here. It should help clean up error() calls in non-ui code, but eventually can become used for gathering messages for a console window, and throwing exceptions in python scripts when an error happens executing something. http://wiki.blender.org/index.php/BlenderDev/Blender2.5/Reports |
Commit Details:
Full Hash: ecc4e55b6666bdb20ed8e2e8e9a7fc2fbeff3731
SVN Revision: 17916
Parent Commit: 241dbe6
Lines Changed: +1437, -730
4 Added Paths:
/source/blender/blenkernel/BKE_context.h (+154, -0) (View)
/source/blender/blenkernel/BKE_report.h (+83, -0) (View)
/source/blender/blenkernel/intern/context.c (+361, -0) (View)
/source/blender/blenkernel/intern/report.c (+186, -0) (View)
/source/blender/blenkernel/BKE_report.h (+83, -0) (View)
/source/blender/blenkernel/intern/context.c (+361, -0) (View)
/source/blender/blenkernel/intern/report.c (+186, -0) (View)
1 Deleted Path:
/source/blender/windowmanager/intern/wm_report.c (+0, -134)
62 Modified Paths:
/source/blender/blenkernel/BKE_global.h (+0, -21) (Diff)
/source/blender/blenkernel/BKE_screen.h (+14, -5) (Diff)
/source/blender/blenkernel/intern/blender.c (+12, -10) (Diff)
/source/blender/blenkernel/intern/library.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/Makefile (+1, -0) (Diff)
/source/blender/blenkernel/SConscript (+1, -1) (Diff)
/source/blender/blenloader/intern/writefile.c (+5, -4) (Diff)
/source/blender/editors/interface/interface.c (+3, -3) (Diff)
/source/blender/editors/interface/interface_handlers.c (+11, -10) (Diff)
/source/blender/editors/interface/interface_regions.c (+16, -18) (Diff)
/source/blender/editors/interface/view2d.c (+24, -15) (Diff)
/source/blender/editors/interface/view2d_ops.c (+37, -32) (Diff)
/source/blender/editors/screen/area.c (+23, -17) (Diff)
/source/blender/editors/screen/screen_edit.c (+33, -32) (Diff)
/source/blender/editors/screen/screen_ops.c (+100, -84) (Diff)
/source/blender/editors/space_action/action_header.c (+4, -4) (Diff)
/source/blender/editors/space_action/space_action.c (+2, -2) (Diff)
/source/blender/editors/space_api/space.c (+1, -1) (Diff)
/source/blender/editors/space_api/spacetypes.c (+1, -1) (Diff)
/source/blender/editors/space_buttons/buttons_header.c (+6, -6) (Diff)
/source/blender/editors/space_buttons/space_buttons.c (+2, -2) (Diff)
/source/blender/editors/space_file/filesel.c (+1, -1) (Diff)
/source/blender/editors/space_file/file_header.c (+4, -4) (Diff)
/source/blender/editors/space_file/space_file.c (+2, -2) (Diff)
/source/blender/editors/space_image/image_header.c (+4, -4) (Diff)
/source/blender/editors/space_image/space_image.c (+2, -2) (Diff)
/source/blender/editors/space_info/info_header.c (+8, -8) (Diff)
/source/blender/editors/space_info/space_info.c (+2, -2) (Diff)
/source/blender/editors/space_ipo/ipo_header.c (+4, -4) (Diff)
/source/blender/editors/space_ipo/space_ipo.c (+4, -4) (Diff)
/source/blender/editors/space_nla/nla_header.c (+4, -4) (Diff)
/source/blender/editors/space_nla/space_nla.c (+2, -2) (Diff)
/source/blender/editors/space_node/node_header.c (+4, -4) (Diff)
/source/blender/editors/space_node/space_node.c (+2, -2) (Diff)
/source/blender/editors/space_outliner/outliner_header.c (+5, -5) (Diff)
/source/blender/editors/space_outliner/space_outliner.c (+8, -7) (Diff)
/source/blender/editors/space_script/script_header.c (+4, -4) (Diff)
/source/blender/editors/space_script/space_script.c (+2, -2) (Diff)
/source/blender/editors/space_sequencer/sequencer_header.c (+4, -4) (Diff)
/source/blender/editors/space_sequencer/space_sequencer.c (+2, -2) (Diff)
/source/blender/editors/space_sound/sound_header.c (+4, -4) (Diff)
/source/blender/editors/space_sound/space_sound.c (+2, -2) (Diff)
/source/blender/editors/space_text/space_text.c (+2, -2) (Diff)
/source/blender/editors/space_text/text_header.c (+4, -4) (Diff)
/source/blender/editors/space_time/space_time.c (+3, -2) (Diff)
/source/blender/editors/space_time/time_header.c (+57, -50) (Diff)
/source/blender/editors/space_time/time_ops.c (+10, -9) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+1, -0) (Diff)
/source/blender/editors/space_view3d/view3d_header.c (+4, -4) (Diff)
/source/blender/editors/util/ed_markers.c (+13, -12) (Diff)
/source/blender/windowmanager/intern/wm.c (+18, -20) (Diff)
/source/blender/windowmanager/intern/wm_cursors.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+100, -94) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+4, -3) (Diff)
/source/blender/windowmanager/intern/wm_gesture.c (+7, -5) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+5, -4) (Diff)
/source/blender/windowmanager/intern/wm_keymap.c (+9, -9) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+11, -10) (Diff)
/source/blender/windowmanager/intern/wm_subwindow.c (+1, -0) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+30, -21) (Diff)
/source/blender/windowmanager/WM_api.h (+0, -4) (Diff)
/source/creator/creator.c (+2, -1) (Diff)
/source/blender/blenkernel/BKE_screen.h (+14, -5) (Diff)
/source/blender/blenkernel/intern/blender.c (+12, -10) (Diff)
/source/blender/blenkernel/intern/library.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/Makefile (+1, -0) (Diff)
/source/blender/blenkernel/SConscript (+1, -1) (Diff)
/source/blender/blenloader/intern/writefile.c (+5, -4) (Diff)
/source/blender/editors/interface/interface.c (+3, -3) (Diff)
/source/blender/editors/interface/interface_handlers.c (+11, -10) (Diff)
/source/blender/editors/interface/interface_regions.c (+16, -18) (Diff)
/source/blender/editors/interface/view2d.c (+24, -15) (Diff)
/source/blender/editors/interface/view2d_ops.c (+37, -32) (Diff)
/source/blender/editors/screen/area.c (+23, -17) (Diff)
/source/blender/editors/screen/screen_edit.c (+33, -32) (Diff)
/source/blender/editors/screen/screen_ops.c (+100, -84) (Diff)
/source/blender/editors/space_action/action_header.c (+4, -4) (Diff)
/source/blender/editors/space_action/space_action.c (+2, -2) (Diff)
/source/blender/editors/space_api/space.c (+1, -1) (Diff)
/source/blender/editors/space_api/spacetypes.c (+1, -1) (Diff)
/source/blender/editors/space_buttons/buttons_header.c (+6, -6) (Diff)
/source/blender/editors/space_buttons/space_buttons.c (+2, -2) (Diff)
/source/blender/editors/space_file/filesel.c (+1, -1) (Diff)
/source/blender/editors/space_file/file_header.c (+4, -4) (Diff)
/source/blender/editors/space_file/space_file.c (+2, -2) (Diff)
/source/blender/editors/space_image/image_header.c (+4, -4) (Diff)
/source/blender/editors/space_image/space_image.c (+2, -2) (Diff)
/source/blender/editors/space_info/info_header.c (+8, -8) (Diff)
/source/blender/editors/space_info/space_info.c (+2, -2) (Diff)
/source/blender/editors/space_ipo/ipo_header.c (+4, -4) (Diff)
/source/blender/editors/space_ipo/space_ipo.c (+4, -4) (Diff)
/source/blender/editors/space_nla/nla_header.c (+4, -4) (Diff)
/source/blender/editors/space_nla/space_nla.c (+2, -2) (Diff)
/source/blender/editors/space_node/node_header.c (+4, -4) (Diff)
/source/blender/editors/space_node/space_node.c (+2, -2) (Diff)
/source/blender/editors/space_outliner/outliner_header.c (+5, -5) (Diff)
/source/blender/editors/space_outliner/space_outliner.c (+8, -7) (Diff)
/source/blender/editors/space_script/script_header.c (+4, -4) (Diff)
/source/blender/editors/space_script/space_script.c (+2, -2) (Diff)
/source/blender/editors/space_sequencer/sequencer_header.c (+4, -4) (Diff)
/source/blender/editors/space_sequencer/space_sequencer.c (+2, -2) (Diff)
/source/blender/editors/space_sound/sound_header.c (+4, -4) (Diff)
/source/blender/editors/space_sound/space_sound.c (+2, -2) (Diff)
/source/blender/editors/space_text/space_text.c (+2, -2) (Diff)
/source/blender/editors/space_text/text_header.c (+4, -4) (Diff)
/source/blender/editors/space_time/space_time.c (+3, -2) (Diff)
/source/blender/editors/space_time/time_header.c (+57, -50) (Diff)
/source/blender/editors/space_time/time_ops.c (+10, -9) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+1, -0) (Diff)
/source/blender/editors/space_view3d/view3d_header.c (+4, -4) (Diff)
/source/blender/editors/util/ed_markers.c (+13, -12) (Diff)
/source/blender/windowmanager/intern/wm.c (+18, -20) (Diff)
/source/blender/windowmanager/intern/wm_cursors.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+100, -94) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+4, -3) (Diff)
/source/blender/windowmanager/intern/wm_gesture.c (+7, -5) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+5, -4) (Diff)
/source/blender/windowmanager/intern/wm_keymap.c (+9, -9) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+11, -10) (Diff)
/source/blender/windowmanager/intern/wm_subwindow.c (+1, -0) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+30, -21) (Diff)
/source/blender/windowmanager/WM_api.h (+0, -4) (Diff)
/source/creator/creator.c (+2, -1) (Diff)