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:
authorCampbell Barton <ideasman42@gmail.com>2013-12-19 19:23:21 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-12-19 19:27:15 +0400
commit2746f7ef2828b40c557ba0e3a9a1f5eb5d2ef6d0 (patch)
treeb13fa4f0eaf070716e19f16ab470f3378e4af4f9
parentaab587817c55f5c53672efe3b1fc4a0e953cb97e (diff)
Change recent fix for T37864, now only check if the file is readonly
Other error cases are already handled elsewhere
-rw-r--r--source/blender/windowmanager/intern/wm_files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index d92e61be76a..af86e0affea 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -883,7 +883,7 @@ int wm_file_write(bContext *C, const char *filepath, int fileflags, ReportList *
}
/* Check if file write permission is ok */
- if (!BLI_file_is_writable(filepath)) {
+ if (BLI_exists(filepath) && !BLI_file_is_writable(filepath)) {
BKE_reportf(reports, RPT_ERROR, "Cannot save blend file, path '%s' is not writable", filepath);
return -1;
}