Remove redundant BLI_exists call
authorCampbell Barton <ideasman42@gmail.com>
Tue, 28 Oct 2014 10:33:05 +0000 (11:33 +0100)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 28 Oct 2014 10:33:05 +0000 (11:33 +0100)
source/blender/render/intern/source/pipeline.c

index 7b43c77537fdba5bf37b5af5809df7b56a3cde22..c112f3da060add20b604d9a9189ee229d701114e 100644 (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);
                                        }
                                }