From 19df0e3cfd5b9fed891ed81dd1123b2351605a7d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 21 Jun 2021 17:25:09 +1000 Subject: Cleanup: swap top/bottom args to planes_from_projmat X & Z were ordered min/max, where as Y was max/min. --- source/blender/editors/mesh/editmesh_knife.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/blender/editors/mesh') diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c index f7cc95af619..2ba1d30900a 100644 --- a/source/blender/editors/mesh/editmesh_knife.c +++ b/source/blender/editors/mesh/editmesh_knife.c @@ -272,8 +272,7 @@ static void knifetool_draw_angle_snapping(const KnifeTool_OpData *kcd) float v1[3], v2[3]; float planes[4][4]; - planes_from_projmat( - (const float(*)[4])kcd->projmat, planes[2], planes[0], planes[3], planes[1], NULL, NULL); + planes_from_projmat(kcd->projmat, planes[2], planes[0], planes[1], planes[3], NULL, NULL); /* ray-cast all planes */ { -- cgit v1.2.3