From 0a8a00cd1060ee7aa9eae4223fc8c2577533247f Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 29 Dec 2008 13:38:08 +0000 Subject: 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. --- source/blender/blenloader/intern/readfile.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/blenloader/intern/readfile.h') diff --git a/source/blender/blenloader/intern/readfile.h b/source/blender/blenloader/intern/readfile.h index 08797d36084..b084e377d19 100644 --- a/source/blender/blenloader/intern/readfile.h +++ b/source/blender/blenloader/intern/readfile.h @@ -107,10 +107,10 @@ struct Main; void blo_join_main(ListBase *mainlist); void blo_split_main(ListBase *mainlist, struct Main *main); -BlendFileData *blo_read_file_internal( FileData *fd, struct ReportList *reports); +BlendFileData *blo_read_file_internal(FileData *fd); -FileData *blo_openblenderfile( char *name, struct ReportList *reports); -FileData *blo_openblendermemory( void *buffer, int buffersize, struct ReportList *reports); +FileData *blo_openblenderfile(char *name, struct ReportList *reports); +FileData *blo_openblendermemory(void *buffer, int buffersize, struct ReportList *reports); FileData *blo_openblendermemfile(struct MemFile *memfile, struct ReportList *reports); void blo_clear_proxy_pointers_from_lib(FileData *fd, Main *oldmain); -- cgit v1.2.3