Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorPratik Borhade <PratikPB2123>2022-05-30 15:25:07 +0300
committerCampbell Barton <campbell@blender.org>2022-05-30 15:29:16 +0300
commita8471459fd18f356f730c684665c8dadadad723d (patch)
tree13b2a26d9b253f6db69a6cad2ed82fa2e151cfe4 /source
parentec8365b9ed6fd6dbf33a8c12c0f80a99580066b0 (diff)
Fix T98445: Knife Tool always cuts through
Minor error in if condition used for early return. Ref D15050
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/mesh/editmesh_knife.c2
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;
}