Fix error in Main cleanup

See 481cdb08ed
This commit is contained in:
2018-12-07 15:40:38 +11:00
parent 27e77d4f9c
commit d6d76759f8
2 changed files with 5 additions and 3 deletions

View File

@@ -578,7 +578,7 @@ bool WM_file_read(bContext *C, const char *filepath, ReportList *reports)
Main *bmain = CTX_data_main(C);
/* when loading startup.blend's, we can be left with a blank path */
if (BKE_main_blendfile_path(bmain)) {
if (BKE_main_blendfile_path(bmain)[0] != '\0') {
G.save_over = 1;
}
else {