[Bf-blender-cvs] [de77aa337cf] master: Cleanup: warning on windows
Jacques Lucke
noreply at git.blender.org
Tue Oct 20 17:50:31 CEST 2020
Commit: de77aa337cf427ceee01a00d292d28c4287f66c7
Author: Jacques Lucke
Date: Tue Oct 20 17:50:08 2020 +0200
Branches: master
https://developer.blender.org/rBde77aa337cf427ceee01a00d292d28c4287f66c7
Cleanup: warning on windows
===================================================================
M source/blender/modifiers/intern/MOD_mesh_to_volume.cc
===================================================================
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
More information about the Bf-blender-cvs
mailing list