Cleanup: remove duplicate code

This code segment is exactly the same as above.
Looks like it was copied accidentally.
This commit is contained in:
Jacques Lucke 2020-10-12 21:13:49 +02:00
parent 19dcd32ee5
commit 1d84881ac1
1 changed files with 0 additions and 9 deletions

View File

@ -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;