From 5ab49afe8d3ba1f3c1364f003ffc8b0f1dbfc2e5 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 7 Mar 2023 19:33:49 +0100 Subject: [PATCH] Cleanup: Fix warning in skin modifier Pull Request: https://projects.blender.org/blender/blender/pulls/105542 --- source/blender/modifiers/intern/MOD_skin.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/blender/modifiers/intern/MOD_skin.cc b/source/blender/modifiers/intern/MOD_skin.cc index 20c6aa7e6a6..f03e37ac730 100644 --- a/source/blender/modifiers/intern/MOD_skin.cc +++ b/source/blender/modifiers/intern/MOD_skin.cc @@ -236,6 +236,8 @@ static bool quad_crosses_symmetry_plane(BMVert *quad[4], const SkinModifierData return false; } +#ifdef WITH_BULLET + /* Returns true if the frame is filled by precisely two faces (and * outputs those faces to fill_faces), otherwise returns false. */ static bool skin_frame_find_contained_faces(const Frame *frame, BMFace *fill_faces[2]) @@ -255,6 +257,8 @@ static bool skin_frame_find_contained_faces(const Frame *frame, BMFace *fill_fac return false; } +#endif + /* Returns true if hull is successfully built, false otherwise */ static bool build_hull(SkinOutput *so, Frame **frames, int totframe) { @@ -370,7 +374,7 @@ static bool build_hull(SkinOutput *so, Frame **frames, int totframe) return true; #else - UNUSED_VARS(so, frames, totframe, skin_frame_find_contained_faces); + UNUSED_VARS(so, frames, totframe); return false; #endif }