[Bf-blender-cvs] [2746f7e] master: Change recent fix for T37864, now only check if the file is readonly
Campbell Barton
noreply at git.blender.org
Thu Dec 19 16:27:38 CET 2013
Commit: 2746f7ef2828b40c557ba0e3a9a1f5eb5d2ef6d0
Author: Campbell Barton
Date: Fri Dec 20 02:23:21 2013 +1100
http://developer.blender.org/rB2746f7ef2828b40c557ba0e3a9a1f5eb5d2ef6d0
Change recent fix for T37864, now only check if the file is readonly
Other error cases are already handled elsewhere
===================================================================
M source/blender/windowmanager/intern/wm_files.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index d92e61b..af86e0a 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;
}
More information about the Bf-blender-cvs
mailing list