diff options
author | Pratik Borhade <PratikPB2123> | 2022-05-30 15:25:07 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-05-30 15:29:16 +0300 |
commit | a8471459fd18f356f730c684665c8dadadad723d (patch) | |
tree | 13b2a26d9b253f6db69a6cad2ed82fa2e151cfe4 | |
parent | ec8365b9ed6fd6dbf33a8c12c0f80a99580066b0 (diff) |
Fix T98445: Knife Tool always cuts through
Minor error in if condition used for early return.
Ref D15050
-rw-r--r-- | source/blender/editors/mesh/editmesh_knife.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |