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:
authorTon Roosendaal <ton@blender.org>2012-12-14 22:54:22 +0400
committerTon Roosendaal <ton@blender.org>2012-12-14 22:54:22 +0400
commit073669dd8588a3b80dfffee98b4f239b4baee8c8 (patch)
treef3c460df85fe2ca04196e1f732ba047cead13152 /source/blender/windowmanager/intern/wm_operators.c
parentda7ce6a3ccdee61dacd64de3df0e041edef7a321 (diff)
Bug fix, irc submitted:
On saving a first .blend after startup, the file would load back as if it was not saved (showing no name in header). The whole FILEFLAGS and G.relabase_valid and G.file_saved etc is messy. This commit fixes issues, but only adds more mess :) Will discuss a nicer implementation of all of this.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_operators.c')
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index ebb9e6662e6..bb957cfcb3c 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -2037,6 +2037,8 @@ void wm_recover_last_session(bContext *C, ReportList *reports)
/* XXX bad global... fixme */
if (G.main->name[0])
G.file_loaded = 1; /* prevents splash to show */
+ else
+ G.relbase_valid = 0;
}
}