Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/image_vdb.cpp
| Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Lines | |||||
| void VDBImageLoader::cleanup() | void VDBImageLoader::cleanup() | ||||
| { | { | ||||
| #ifdef WITH_OPENVDB | #ifdef WITH_OPENVDB | ||||
| /* Free OpenVDB grid memory as soon as we can. */ | /* Free OpenVDB grid memory as soon as we can. */ | ||||
| grid.reset(); | grid.reset(); | ||||
| #endif | #endif | ||||
| } | } | ||||
| bool VDBImageLoader::is_vdb_loader() const | |||||
| { | |||||
| return true; | |||||
| } | |||||
| #ifdef WITH_OPENVDB | |||||
| openvdb::GridBase::ConstPtr VDBImageLoader::get_grid() | |||||
| { | |||||
| return grid; | |||||
| } | |||||
| #endif | |||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||