patch [#34103] fileops_1.patch
from Lawrence D'Oliveiro (ldo) Add comments and use of bool type in fileops.c
This commit is contained in:
@@ -2012,7 +2012,7 @@ int RE_is_rendering_allowed(Scene *scene, Object *camera_override, ReportList *r
|
||||
|
||||
render_result_exr_file_path(scene, "", 0, str);
|
||||
|
||||
if (BLI_file_is_writable(str) == 0) {
|
||||
if (!BLI_file_is_writable(str)) {
|
||||
BKE_report(reports, RPT_ERROR, "Cannot save render buffers, check the temp default path");
|
||||
return 0;
|
||||
}
|
||||
@@ -2442,7 +2442,7 @@ void RE_BlenderAnim(Render *re, Main *bmain, Scene *scene, Object *camera_overri
|
||||
/* remove touched file */
|
||||
if (BKE_imtype_is_movie(scene->r.im_format.imtype) == 0) {
|
||||
if (scene->r.mode & R_TOUCH && BLI_exists(name) && BLI_file_size(name) == 0) {
|
||||
BLI_delete(name, 0, 0);
|
||||
BLI_delete(name, false, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user