From 2fef2f707a560e0a4d97ecced526fa30dc898235 Mon Sep 17 00:00:00 2001 From: Falk David Date: Tue, 21 Feb 2023 13:20:47 +0100 Subject: [PATCH] Fix: Unable pick select first point/curve in Curves Because of an off-by-one error, it was not possible to select the fist point or curve using the pick_select operator in the Curves object. --- source/blender/editors/curves/intern/curves_selection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/curves/intern/curves_selection.cc b/source/blender/editors/curves/intern/curves_selection.cc index 7855d311161..df990ed505b 100644 --- a/source/blender/editors/curves/intern/curves_selection.cc +++ b/source/blender/editors/curves/intern/curves_selection.cc @@ -507,7 +507,7 @@ static bool find_closest_curve_to_screen_co(const Depsgraph &depsgraph, return b; }); - if (closest_data.index > 0) { + if (closest_data.index >= 0) { return true; }