Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-10-20 18:50:08 +0300
committerJacques Lucke <jacques@blender.org>2020-10-20 18:50:22 +0300
commitde77aa337cf427ceee01a00d292d28c4287f66c7 (patch)
treede5007a319350425830d7a2482741df6ba31c1e9
parentc0a0789af5579677e39de69d0fa63b5b5ef85cac (diff)
Cleanup: warning on windows
-rw-r--r--source/blender/modifiers/intern/MOD_mesh_to_volume.cc3
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