Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-10-12 22:13:49 +0300
committerJacques Lucke <jacques@blender.org>2020-10-12 22:14:14 +0300
commit1d84881ac12f7d6ef7047733960880fa1f9ec0de (patch)
treec14f1dd6f09d3c693d1dc72a9132d49000ee14fe /source/blender/blenkernel/intern/volume.cc
parent19dcd32ee5942d17f9b9d45d7e13fd06206f54b8 (diff)
Cleanup: remove duplicate code
This code segment is exactly the same as above. Looks like it was copied accidentally.
Diffstat (limited to 'source/blender/blenkernel/intern/volume.cc')
-rw-r--r--source/blender/blenkernel/intern/volume.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/source/blender/blenkernel/intern/volume.cc b/source/blender/blenkernel/intern/volume.cc
index afbdda56181..32f6a94aa7f 100644
--- a/source/blender/blenkernel/intern/volume.cc
+++ b/source/blender/blenkernel/intern/volume.cc
@@ -742,15 +742,6 @@ bool BKE_volume_load(Volume *volume, Main *bmain)
return false;
}
- /* Test if file exists. */
- if (!BLI_exists(grids.filepath)) {
- char filename[FILE_MAX];
- BLI_split_file_part(grids.filepath, filename, sizeof(filename));
- grids.error_msg = filename + std::string(" not found");
- CLOG_INFO(&LOG, 1, "Volume %s: %s", volume_name, grids.error_msg.c_str());
- return false;
- }
-
/* Open OpenVDB file. */
openvdb::io::File file(grids.filepath);
openvdb::GridPtrVec vdb_grids;