diff options
author | Jacques Lucke <jacques@blender.org> | 2020-10-20 18:50:08 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-10-20 18:50:22 +0300 |
commit | de77aa337cf427ceee01a00d292d28c4287f66c7 (patch) | |
tree | de5007a319350425830d7a2482741df6ba31c1e9 /source/blender/modifiers/intern/MOD_mesh_to_volume.cc | |
parent | c0a0789af5579677e39de69d0fa63b5b5ef85cac (diff) |
Cleanup: warning on windows
Diffstat (limited to 'source/blender/modifiers/intern/MOD_mesh_to_volume.cc')
-rw-r--r-- | source/blender/modifiers/intern/MOD_mesh_to_volume.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_mesh_to_volume.cc b/source/blender/modifiers/intern/MOD_mesh_to_volume.cc index 2e45ac66cff..cc16da0fa80 100644 --- a/source/blender/modifiers/intern/MOD_mesh_to_volume.cc +++ b/source/blender/modifiers/intern/MOD_mesh_to_volume.cc @@ -176,6 +176,7 @@ static void panelRegister(ARegionType *region_type) modifier_panel_register(region_type, eModifierType_MeshToVolume, panel_draw); } +#ifdef WITH_OPENVDB static float compute_voxel_size(const ModifierEvalContext *ctx, const MeshToVolumeModifierData *mvmd, const blender::float4x4 &transform) @@ -202,6 +203,7 @@ static float compute_voxel_size(const ModifierEvalContext *ctx, const float voxel_size = approximate_volume_side_length / mvmd->voxel_amount / volume_simplify; return voxel_size; } +#endif static Volume *modifyVolume(ModifierData *md, const ModifierEvalContext *ctx, Volume *input_volume) { @@ -272,7 +274,6 @@ static Volume *modifyVolume(ModifierData *md, const ModifierEvalContext *ctx, Vo #else UNUSED_VARS(md, ctx); - UNUSED_VARS(compute_voxel_size); BKE_modifier_set_error(md, "Compiled without OpenVDB"); return input_volume; #endif |