From a8471459fd18f356f730c684665c8dadadad723d Mon Sep 17 00:00:00 2001 From: Pratik Borhade Date: Mon, 30 May 2022 22:25:07 +1000 Subject: Fix T98445: Knife Tool always cuts through Minor error in if condition used for early return. Ref D15050 --- source/blender/editors/mesh/editmesh_knife.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c index 7972459e457..5b3487b0a33 100644 --- a/source/blender/editors/mesh/editmesh_knife.c +++ b/source/blender/editors/mesh/editmesh_knife.c @@ -1310,7 +1310,7 @@ static void knife_bvh_raycast_cb(void *userdata, const BVHTreeRay *ray, BVHTreeRayHit *hit) { - if (index != -1) { + if (index == -1) { return; } -- cgit v1.2.3