1
1

Cleanup: Simplify logic

This commit is contained in:
2021-08-24 10:01:08 -05:00
parent 038f9b7f4a
commit 9327c00f70

View File

@@ -123,7 +123,7 @@ int Spline::evaluated_edges_size() const
float Spline::length() const
{
Span<float> lengths = this->evaluated_lengths();
return (lengths.size() == 0) ? 0 : this->evaluated_lengths().last();
return lengths.is_empty() ? 0.0f : this->evaluated_lengths().last();
}
int Spline::segments_size() const