[Core] Add LocalVector::has for convenience

This commit is contained in:
A Thousand Ships
2024-05-06 16:43:04 +02:00
parent d8aa2c65a9
commit 86de59d60a
12 changed files with 27 additions and 14 deletions
+1 -1
View File
@@ -1133,7 +1133,7 @@ void GodotConvexPolygonShape3D::_setup(const Vector<Vector3> &p_vertices) {
max_support = s;
}
}
if (extreme_vertices.find(best_vertex) == -1)
if (!extreme_vertices.has(best_vertex))
extreme_vertices.push_back(best_vertex);
}
}