Remove redundant BLI_exists call

This commit is contained in:
Campbell Barton 2014-10-28 11:33:05 +01:00
parent 785b90d7ef
commit cefe137e91
1 changed files with 2 additions and 1 deletions

View File

@ -3098,7 +3098,8 @@ void RE_BlenderAnim(Render *re, Main *bmain, Scene *scene, Object *camera_overri
if (G.is_break == true) {
/* 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) {
if ((scene->r.mode & R_TOUCH) && (BLI_file_size(name) == 0)) {
/* BLI_exists(name) is implicit */
BLI_delete(name, false, false);
}
}