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:
authorCampbell Barton <ideasman42@gmail.com>2021-10-27 09:20:38 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-10-27 09:20:38 +0300
commitd9799e770630c3971106bcadd45010bc82824f09 (patch)
tree91a77e5c95a2d914d1680795dd40c810743d685c /source/blender/editors
parent55dda9fdb3f17281304d323ee18f23aa2e7a5ece (diff)
Cleanup: use UNUSED_FUNCTION(..) attribute
Otherwise this function may fail to compile when other changes are made.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/mesh/editmesh_knife.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index 09ae779138c..b712cfc24ed 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -1462,8 +1462,9 @@ static void knife_input_ray_segment(KnifeTool_OpData *kcd,
}
/* No longer used, but may be useful in the future. */
-#if 0
-static void knifetool_recast_cageco(KnifeTool_OpData *kcd, float mval[3], float r_cage[3])
+static void UNUSED_FUNCTION(knifetool_recast_cageco)(KnifeTool_OpData *kcd,
+ float mval[3],
+ float r_cage[3])
{
float origin[3];
float origin_ofs[3];
@@ -1477,7 +1478,6 @@ static void knifetool_recast_cageco(KnifeTool_OpData *kcd, float mval[3], float
knife_bvh_raycast(kcd, origin, ray_normal, 0.0f, NULL, co, r_cage, NULL);
}
-#endif
static bool knife_verts_edge_in_face(KnifeVert *v1, KnifeVert *v2, BMFace *f)
{