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

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to