Fix building without OPENVDB

This commit is contained in:
Campbell Barton 2020-10-05 23:01:38 +11:00
parent 7e836bde11
commit c129d78039
1 changed files with 2 additions and 0 deletions

View File

@ -1291,6 +1291,7 @@ Volume *BKE_volume_copy_for_eval(Volume *volume_src, bool reference)
return result;
}
#ifdef WITH_OPENVDB
struct CreateGridOp {
template<typename GridType> typename openvdb::GridBase::Ptr operator()()
{
@ -1302,6 +1303,7 @@ struct CreateGridOp {
}
}
};
#endif
VolumeGrid *BKE_volume_grid_add(Volume *volume, const char *name, VolumeGridType type)
{