Fix incorrect setting of initial file browser location

This commit is contained in:
Julian Eisel 2022-10-06 19:36:23 +02:00
parent 3013cf0b37
commit 4441e3b791
1 changed files with 1 additions and 1 deletions

View File

@ -2396,7 +2396,7 @@ static int wm_new_project_invoke(bContext *C, wmOperator *op, const wmEvent *UNU
const char *blendfile_path = BKE_main_blendfile_path(bmain);
if (blendfile_path[0]) {
/* Open at the .blend file location if any. */
RNA_string_set(op->ptr, "filepath", blendfile_path);
RNA_string_set(op->ptr, "directory", blendfile_path);
}
WM_event_add_fileselect(C, op);