diff options
author | Jacques Lucke <jacques@blender.org> | 2022-08-22 17:31:53 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-08-22 17:31:53 +0300 |
commit | 3345e8ed3c7335e18d15c047b5259af6eb620f13 (patch) | |
tree | 054657b322cbda39b74e8303ce431a6d791794e1 /source/blender/nodes | |
parent | de00b892a707d90c2b698511d9aeac5c304d7cf8 (diff) | |
parent | 5fff6c419c54be9eb29a7fae33abd632d0362916 (diff) |
Merge branch 'blender-v3.3-release'
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_curve_spline_parameter.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_spline_parameter.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_spline_parameter.cc index b98541e3446..5901d310df4 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_curve_spline_parameter.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_curve_spline_parameter.cc @@ -143,8 +143,8 @@ static VArray<float> construct_curve_parameter_varray(const bke::CurvesGeometry Array<float> lengths = accumulated_lengths_curve_domain(curves); const int last_index = curves.curves_num() - 1; - const int total_length = lengths.last() + curves.evaluated_length_total_for_curve( - last_index, cyclic[last_index]); + const float total_length = lengths.last() + curves.evaluated_length_total_for_curve( + last_index, cyclic[last_index]); if (total_length > 0.0f) { const float factor = 1.0f / total_length; for (float &value : lengths) { |