You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-04 17:04:49 +00:00
Replace size() == 0 with is_empty().
This commit is contained in:
@@ -2237,7 +2237,7 @@ real_t ConvexHullComputer::compute(const Vector3 *p_coords, int32_t p_count, rea
|
||||
Error ConvexHullComputer::convex_hull(const Vector<Vector3> &p_points, Geometry3D::MeshData &r_mesh) {
|
||||
r_mesh = Geometry3D::MeshData(); // clear
|
||||
|
||||
if (p_points.size() == 0) {
|
||||
if (p_points.is_empty()) {
|
||||
return FAILED; // matches QuickHull
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user