diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-12-19 19:23:21 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-12-19 19:27:15 +0400 |
commit | 2746f7ef2828b40c557ba0e3a9a1f5eb5d2ef6d0 (patch) | |
tree | b13fa4f0eaf070716e19f16ab470f3378e4af4f9 /source | |
parent | aab587817c55f5c53672efe3b1fc4a0e953cb97e (diff) |
Change recent fix for T37864, now only check if the file is readonly
Other error cases are already handled elsewhere
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 2 |
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; } |