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:
Diffstat (limited to 'source/creator/creator_args.c')
-rw-r--r--source/creator/creator_args.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c
index 896d29e0583..d3cec093980 100644
--- a/source/creator/creator_args.c
+++ b/source/creator/creator_args.c
@@ -1994,9 +1994,7 @@ static int arg_handle_load_file(int UNUSED(argc), const char **argv, void *data)
if (BLO_has_bfile_extension(filename)) {
/* Just pretend a file was loaded, so the user can press Save and it'll
* save at the filename from the CLI. */
- BLI_strncpy(G_MAIN->name, filename, FILE_MAX);
- G.relbase_valid = true;
- G.save_over = true;
+ STRNCPY(G_MAIN->filepath, filename);
printf("... opened default scene instead; saving will write to: %s\n", filename);
}
else {