diff options
author | Hans Goudey <h.goudey@me.com> | 2021-08-24 18:01:08 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-08-24 18:01:08 +0300 |
commit | 9327c00f70eb7488929c65e2cf2edaecf2d43596 (patch) | |
tree | bbc90848cb0cb0b0a5c55b4f062ac045c534b55a /source | |
parent | 038f9b7f4a0e58da671079fd09aecdb926f12b0f (diff) |
Cleanup: Simplify logic
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/spline_base.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/spline_base.cc b/source/blender/blenkernel/intern/spline_base.cc index dda7abea0fc..732fabc6582 100644 --- a/source/blender/blenkernel/intern/spline_base.cc +++ b/source/blender/blenkernel/intern/spline_base.cc @@ -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 |