[Bf-blender-cvs] [b37caa3f064] master: Fix: Knife unused function warning

Cian Jinks noreply at git.blender.org
Tue Oct 26 22:24:08 CEST 2021


Commit: b37caa3f06440c3dd36c749950e50becfbddf2e8
Author: Cian Jinks
Date:   Tue Oct 26 21:21:22 2021 +0100
Branches: master
https://developer.blender.org/rBb37caa3f06440c3dd36c749950e50becfbddf2e8

Fix: Knife unused function warning

===================================================================

M	source/blender/editors/mesh/editmesh_knife.c

===================================================================

diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index 826a9ce2b6b..49afe90af91 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -1460,6 +1460,8 @@ static void knife_input_ray_segment(KnifeTool_OpData *kcd,
   ED_view3d_unproject_v3(kcd->vc.region, mval[0], mval[1], ofs, r_origin_ofs);
 }
 
+/* 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])
 {
   float origin[3];
@@ -1474,6 +1476,7 @@ 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)
 {



More information about the Bf-blender-cvs mailing list