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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-10-10 00:27:38 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-10-10 00:27:38 +0400
commitfeabc7916f6242954a8d2d2c77ff391e691c5bdd (patch)
tree50641f123c47019cbe191eb597d474407512dd55 /source
parent36039be6b5a56d20982b400fb6508bfd93c1cb1f (diff)
fix save-as-copy option changing the filepath for new files.
Diffstat (limited to 'source')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index cc4d422331d..c9c45f888de 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -865,9 +865,10 @@ int wm_file_write(bContext *C, const char *filepath, int fileflags, ReportList *
/* first time saving */
/* XXX temp solution to solve bug, real fix coming (ton) */
- if (G.main->name[0] == 0)
+ if ((G.main->name[0] == '\0' && !(fileflags & G_FILE_SAVE_COPY))) {
BLI_strncpy(G.main->name, filepath, sizeof(G.main->name));
-
+ }
+
/* XXX temp solution to solve bug, real fix coming (ton) */
G.main->recovered = 0;