Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/volume.cc
| Show First 20 Lines • Show All 675 Lines • ▼ Show 20 Lines | try { | ||||
| grids.metadata = file.getMetadata(); | grids.metadata = file.getMetadata(); | ||||
| } | } | ||||
| catch (const openvdb::IoError &e) { | catch (const openvdb::IoError &e) { | ||||
| grids.error_msg = e.what(); | grids.error_msg = e.what(); | ||||
| CLOG_INFO(&LOG, 1, "Volume %s: %s", volume_name, grids.error_msg.c_str()); | CLOG_INFO(&LOG, 1, "Volume %s: %s", volume_name, grids.error_msg.c_str()); | ||||
| } | } | ||||
| /* Add grids read from file to own vector, filtering out any NULL pointers. */ | /* Add grids read from file to own vector, filtering out any NULL pointers. */ | ||||
| for (const openvdb::GridBase::Ptr vdb_grid : vdb_grids) { | for (const openvdb::GridBase::Ptr &vdb_grid : vdb_grids) { | ||||
| if (vdb_grid) { | if (vdb_grid) { | ||||
| VolumeFileCache::Entry template_entry(grids.filepath, vdb_grid); | VolumeFileCache::Entry template_entry(grids.filepath, vdb_grid); | ||||
| grids.emplace_back(template_entry); | grids.emplace_back(template_entry); | ||||
| } | } | ||||
| } | } | ||||
| return grids.error_msg.empty(); | return grids.error_msg.empty(); | ||||
| #else | #else | ||||
| ▲ Show 20 Lines • Show All 550 Lines • Show Last 20 Lines | |||||