1
0
mirror of https://github.com/godotengine/godot synced 2024-07-08 18:50:43 +00:00

Merge pull request #58176 from timothyqiu/find-nearest

This commit is contained in:
Rémi Verschelde 2022-02-16 11:01:13 +01:00 committed by GitHub
commit f5b9cbaff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,6 +142,9 @@ public:
}
int find_nearest(const T &p_val) const {
if (_cowdata.is_empty()) {
return -1;
}
bool exact;
return _find(p_val, exact);
}