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>2007-02-09 14:47:51 +0300
committerTon Roosendaal <ton@blender.org>2007-02-09 14:47:51 +0300
commitd814f0161035865effaa8407222f3941197319dc (patch)
treeb81022aaa561b80b81c380f92153f6089da2e176 /source/blender/src/filesel.c
parente04f5bda31dbf64a77c79b8fa37e0e40ec646c65 (diff)
Bugfix #5959
Save .blend file: when setting option "Relative Paths", blender tried to save in the root directory. Saving .blend files is always with a real path, do the relative option should be skipped. Also removed the totally annoying error popup when trying to save something before you saved a .blend. That warning was almost never correct. I left in this warning for loading files btw.
Diffstat (limited to 'source/blender/src/filesel.c')
-rw-r--r--source/blender/src/filesel.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/source/blender/src/filesel.c b/source/blender/src/filesel.c
index 9f657866a8e..23877ee86f8 100644
--- a/source/blender/src/filesel.c
+++ b/source/blender/src/filesel.c
@@ -85,15 +85,16 @@
#include "BKE_material.h"
#include "BKE_utildefines.h"
+#include "BIF_editview.h"
#include "BIF_gl.h"
#include "BIF_interface.h"
-#include "BIF_toolbox.h"
+#include "BIF_language.h"
#include "BIF_mywindow.h"
-#include "BIF_editview.h"
+#include "BIF_resources.h"
#include "BIF_space.h"
#include "BIF_screen.h"
-#include "BIF_resources.h"
-#include "BIF_language.h"
+#include "BIF_toolbox.h"
+#include "BIF_usiblender.h"
#include "BLO_readfile.h"
@@ -1667,16 +1668,9 @@ static void filesel_execute(SpaceFile *sfile)
strcat(name, sfile->file);
if(sfile->flag & FILE_STRINGCODE) {
- if (!G.relbase_valid) {
- /* skip save */
- if(strncmp(sfile->title, "Save", 4)) {
- okee("You have to save the .blend file before using relative paths! Using absolute path instead.");
- sfile->flag &= ~FILE_STRINGCODE;
- }
- }
- else {
+ /* still weak, but we don't want saving .blends to make relative paths */
+ if(sfile->returnfunc!=BIF_write_file)
BLI_makestringcode(G.sce, name);
- }
}
if(sfile->returnfunc)
sfile->returnfunc(name);