[Bf-blender-cvs] [a8471459fd1] master: Fix T98445: Knife Tool always cuts through

Pratik Borhade noreply at git.blender.org
Mon May 30 14:29:29 CEST 2022


Commit: a8471459fd18f356f730c684665c8dadadad723d
Author: Pratik Borhade
Date:   Mon May 30 22:25:07 2022 +1000
Branches: master
https://developer.blender.org/rBa8471459fd18f356f730c684665c8dadadad723d

Fix T98445: Knife Tool always cuts through

Minor error in if condition used for early return.

Ref D15050

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

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 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;
   }



More information about the Bf-blender-cvs mailing list