Cleanup: minor wm_homefile_read simplification

Logic in this function is a bit scattered,
minor changes to avoid confusion.

Also rename 'from_memory' to 'use_factory_settings'.
This commit is contained in:
2017-03-23 10:32:16 +11:00
parent 762319e911
commit 12b62b58e1
3 changed files with 40 additions and 39 deletions

View File

@@ -37,7 +37,7 @@ struct wmOperatorType;
void wm_history_file_read(void);
int wm_homefile_read(
struct bContext *C, struct ReportList *reports,
bool from_memory, const char *filepath_startup_override);
bool use_factory_settings, const char *filepath_startup_override);
void wm_file_read_report(bContext *C);
void WM_OT_save_homefile(struct wmOperatorType *ot);