Blender Git Loki

Git Commits -> Revision 0a8a00c

Revision 0a8a00c by Brecht Van Lommel (master)
December 29, 2008, 13:38 (GMT)
2.5: Error reporting

* Added a report list to operator, to which they can report errors and
warnings. When the operator ends, it will display them with a popup. For
python these should become exceptions when calling operators.
* Added a function to make a popup menu from a report list.
* Also added a utility function to prepend a string before the reports to
indicate what they relates to. Also made the report functions used
BLI_dynstr to simplify the code.
* Made file reading and writing report errors to the user again using this
system, also replacing the left over uncommented bad level error() calls.

Commit Details:

Full Hash: 0a8a00cd1060ee7aa9eae4223fc8c2577533247f
SVN Revision: 18149
Parent Commit: d51bc24
Lines Changed: +346, -233

23 Modified Paths:

/source/blender/blenkernel/BKE_blender.h (+4, -3) (Diff)
/source/blender/blenkernel/BKE_report.h (+3, -1) (Diff)
/source/blender/blenkernel/intern/blender.c (+19, -43) (Diff)
/source/blender/blenkernel/intern/context.c (+11, -14) (Diff)
/source/blender/blenkernel/intern/report.c (+84, -56) (Diff)
/source/blender/blenlib/BLI_dynstr.h (+3, -0) (Diff)
/source/blender/blenlib/intern/BLI_dynstr.c (+10, -4) (Diff)
/source/blender/blenloader/BLO_readfile.h (+3, -3) (Diff)
/source/blender/blenloader/intern/readblenentry.c (+7, -7) (Diff)
/source/blender/blenloader/intern/readfile.c (+54, -24) (Diff)
/source/blender/blenloader/intern/readfile.h (+3, -3) (Diff)
/source/blender/blenloader/intern/writefile.c (+22, -11) (Diff)
/source/blender/editors/include/UI_interface.h (+2, -0) (Diff)
/source/blender/editors/interface/interface_regions.c (+29, -0) (Diff)
/source/blender/editors/space_file/filelist.c (+2, -1) (Diff)
/source/blender/makesdna/DNA_space_types.h (+30, -0) (Diff)
/source/blender/makesdna/DNA_windowmanager_types.h (+2, -0) (Diff)
/source/blender/windowmanager/intern/wm.c (+7, -1) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+18, -0) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+24, -39) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+2, -13) (Diff)
/source/blender/windowmanager/WM_api.h (+2, -5) (Diff)
/source/creator/creator.c (+5, -5) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021