Fix T98445: Knife Tool always cuts through

Minor error in if condition used for early return.

Ref D15050
This commit is contained in:
Pratik Borhade
2022-05-30 22:25:07 +10:00
committed by Campbell Barton
parent ec8365b9ed
commit a8471459fd

View File

@@ -1310,7 +1310,7 @@ static void knife_bvh_raycast_cb(void *userdata,
const BVHTreeRay *ray,
BVHTreeRayHit *hit)
{
if (index != -1) {
if (index == -1) {
return;
}