diff options
author | Bastien Montagne <bastien@blender.org> | 2021-06-22 18:28:19 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-06-22 18:28:19 +0300 |
commit | f8d219dfd4c31a918e33cb715472d91a5cd3fd51 (patch) | |
tree | ca81cea9334b135e20f7d7b718916e559227fa48 /source/blender/blenloader/intern/readblenentry.c | |
parent | 6ff0d599670a11f472d050f66e3b692a15660c51 (diff) |
Enhanced stats/reports for blendfile reading.
Add direct user feedback (as a warning report) to user when recursive
resync of overrides was needed.
And some timing (as CLOG logs) about main readfile process steps.
This is essentially adding a new BlendFileReadReport structure that wraps
BKE_reports list, and adds some extra info (some timing, some info about
overrides and (recursive) resync, etc.).
Diffstat (limited to 'source/blender/blenloader/intern/readblenentry.c')
-rw-r--r-- | source/blender/blenloader/intern/readblenentry.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenloader/intern/readblenentry.c b/source/blender/blenloader/intern/readblenentry.c index 19033ba9bf1..7131d8b887d 100644 --- a/source/blender/blenloader/intern/readblenentry.c +++ b/source/blender/blenloader/intern/readblenentry.c @@ -366,12 +366,12 @@ void BLO_blendhandle_close(BlendHandle *bh) */ BlendFileData *BLO_read_from_file(const char *filepath, eBLOReadSkip skip_flags, - ReportList *reports) + BlendFileReadReport *reports) { BlendFileData *bfd = NULL; FileData *fd; - fd = blo_filedata_from_file(filepath, reports); + fd = blo_filedata_from_file(filepath, reports->reports); if (fd) { fd->reports = reports; fd->skip_flags = skip_flags; @@ -401,7 +401,7 @@ BlendFileData *BLO_read_from_memory(const void *mem, fd = blo_filedata_from_memory(mem, memsize, reports); if (fd) { - fd->reports = reports; + fd->reports = &(struct BlendFileReadReport){.reports = reports}; fd->skip_flags = skip_flags; bfd = blo_read_file_internal(fd, ""); blo_filedata_free(fd); @@ -430,7 +430,7 @@ BlendFileData *BLO_read_from_memfile(Main *oldmain, fd = blo_filedata_from_memfile(memfile, params, reports); if (fd) { - fd->reports = reports; + fd->reports = &(struct BlendFileReadReport){.reports = reports}; fd->skip_flags = params->skip_flags; BLI_strncpy(fd->relabase, filename, sizeof(fd->relabase)); |