[Bf-blender-cvs] [4441e3b791d] blender-projects-basics: Fix incorrect setting of initial file browser location

Julian Eisel noreply at git.blender.org
Thu Oct 6 19:36:50 CEST 2022


Commit: 4441e3b791dc3ab4ab5a30d61794b772d09fa390
Author: Julian Eisel
Date:   Thu Oct 6 19:36:23 2022 +0200
Branches: blender-projects-basics
https://developer.blender.org/rB4441e3b791dc3ab4ab5a30d61794b772d09fa390

Fix incorrect setting of initial file browser location

===================================================================

M	source/blender/windowmanager/intern/wm_files.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 35b7a4d61e6..4a0be0eb591 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -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);



More information about the Bf-blender-cvs mailing list