Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-04-18 19:22:18 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-04-20 11:46:59 +0300
commit88bbb68ad01bed841fad9ad26a68510f298e6f3b (patch)
tree67bba0b69f9d5b13ea1a637547e3f5d47605f466 /source/blender/blenloader/BLO_runtime.h
parentdda7e3b69565c5701207a640201a1c8052f76743 (diff)
Add debug tool to check validity of current file *before* saving.
It is hidden behind the --debug-io flag for now. Idea is to try to catch broken libraries state in current Main before we actually write the file on disk, should help catching and understanding what happens in Spring corruption cases.
Diffstat (limited to 'source/blender/blenloader/BLO_runtime.h')
-rw-r--r--source/blender/blenloader/BLO_runtime.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenloader/BLO_runtime.h b/source/blender/blenloader/BLO_runtime.h
index 0a5a7d3a660..c119ea95f66 100644
--- a/source/blender/blenloader/BLO_runtime.h
+++ b/source/blender/blenloader/BLO_runtime.h
@@ -38,11 +38,14 @@ extern "C" {
#endif
struct BlendFileData;
+struct Main;
struct ReportList;
int BLO_is_a_runtime(const char *file);
struct BlendFileData *BLO_read_runtime(const char *file, struct ReportList *reports);
+bool BLO_main_validate_libraries(struct Main *bmain, struct ReportList *reports);
+
#ifdef __cplusplus
}
#endif