Commit: c920b83b845603b65c8ad4d60078e36cc82c8a70
Author: Hans Goudey
Date:   Tue Aug 10 12:09:19 2021 -0500
Branches: temp-geometry-nodes-fields-prototype
https://developer.blender.org/rBc920b83b845603b65c8ad4d60078e36cc82c8a70

Fix curve parameter node with multiple splines

===================================================================

M       source/blender/nodes/geometry/node_geometry_util.cc

===================================================================

diff --git a/source/blender/nodes/geometry/node_geometry_util.cc 
b/source/blender/nodes/geometry/node_geometry_util.cc
index 17f614fa86b..4f8842c1f17 100644
--- a/source/blender/nodes/geometry/node_geometry_util.cc
+++ b/source/blender/nodes/geometry/node_geometry_util.cc
@@ -173,7 +173,7 @@ void prepare_field_inputs(bke::FieldInputs &field_inputs,
       for (const int i_spline : splines.index_range()) {
         const int offset = offsets[i_spline];
         MutableSpan<float> spline_parameters = 
parameters.as_mutable_span().slice(
-            offset, offsets[i_spline + 1]);
+            offset, offsets[i_spline + 1] - offset);
         spline_parameters.first() = 0.0f;
 
         const Spline &spline = *splines[i_spline];

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to