[Bf-blender-cvs] [fcbb03a] master: Remove redundant file exists checks
Campbell Barton
noreply at git.blender.org
Wed Feb 3 08:09:46 CET 2016
Commit: fcbb03a9b7bdc67f8f70ab679bc3083e71801465
Author: Campbell Barton
Date: Wed Feb 3 17:45:54 2016 +1100
Branches: master
https://developer.blender.org/rBfcbb03a9b7bdc67f8f70ab679bc3083e71801465
Remove redundant file exists checks
===================================================================
M source/blender/blenkernel/intern/pointcache.c
M source/blender/render/intern/source/voxeldata.c
===================================================================
diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c
index 4414838..71b68ce 100644
--- a/source/blender/blenkernel/intern/pointcache.c
+++ b/source/blender/blenkernel/intern/pointcache.c
@@ -1886,9 +1886,6 @@ static PTCacheFile *ptcache_file_open(PTCacheID *pid, int mode, int cfra)
ptcache_filename(pid, filename, cfra, 1, 1);
if (mode==PTCACHE_FILE_READ) {
- if (!BLI_exists(filename)) {
- return NULL;
- }
fp = BLI_fopen(filename, "rb");
}
else if (mode==PTCACHE_FILE_WRITE) {
diff --git a/source/blender/render/intern/source/voxeldata.c b/source/blender/render/intern/source/voxeldata.c
index 7a0d12d..1022aee 100644
--- a/source/blender/render/intern/source/voxeldata.c
+++ b/source/blender/render/intern/source/voxeldata.c
@@ -426,7 +426,6 @@ void cache_voxeldata(Tex *tex, int scene_frame)
return;
case TEX_VD_BLENDERVOXEL:
BLI_path_abs(path, G.main->name);
- if (!BLI_exists(path)) return;
fp = BLI_fopen(path, "rb");
if (!fp) return;
@@ -437,7 +436,6 @@ void cache_voxeldata(Tex *tex, int scene_frame)
return;
case TEX_VD_RAW_8BIT:
BLI_path_abs(path, G.main->name);
- if (!BLI_exists(path)) return;
fp = BLI_fopen(path, "rb");
if (!fp) return;
More information about the Bf-blender-cvs
mailing list