forked from blender/blender
Export volumes from object modifier (quick effect) #62
@ -202,6 +202,12 @@ void VolumeData::init_from_modifier()
|
||||
Object *object = (Object *)this->id;
|
||||
FluidModifierData *volume_modifier = (FluidModifierData *)BKE_modifiers_findby_type(
|
||||
object, eModifierType_Fluid);
|
||||
|
||||
if ((volume_modifier->domain->cache_data_format & FLUID_DOMAIN_FILE_OPENVDB) == 0) {
|
||||
CLOG_WARN(LOG_RENDER_HYDRA_SCENE, "Volume %s is't exported: only OpenVDB file format supported", prim_id.GetText());
|
||||
return;
|
||||
}
|
||||
|
||||
filepath_ = get_cached_file_path(volume_modifier->domain->cache_directory,
|
||||
scene_delegate_->scene->r.cfra);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user