Cleanup: silence warnign in volume grid code

Differential Revision: https://developer.blender.org/D7175
This commit is contained in:
Stephan 2020-03-19 20:28:57 +01:00 committed by Brecht Van Lommel
parent 817c38f715
commit da019efde9
1 changed files with 1 additions and 1 deletions

View File

@ -681,7 +681,7 @@ bool BKE_volume_load(Volume *volume, Main *bmain)
}
/* 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) {
VolumeFileCache::Entry template_entry(grids.filepath, vdb_grid);
grids.emplace_back(template_entry);