Commit: 1a820680a1bafda79ac3edc328f75662513029f9
Author: Iliay Katueshenock
Date:   Tue Jul 5 17:50:59 2022 -0500
Branches: master
https://developer.blender.org/rB1a820680a1bafda79ac3edc328f75662513029f9

Fix: Tests: Incorrect curve construction

The offsets were filled with the same value,
but they must be the total accumulated point count.

Differential Revision: https://developer.blender.org/D15374

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

M       source/blender/blenkernel/intern/curves_geometry_test.cc

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

diff --git a/source/blender/blenkernel/intern/curves_geometry_test.cc 
b/source/blender/blenkernel/intern/curves_geometry_test.cc
index 48493743cfc..2c87fc539fe 100644
--- a/source/blender/blenkernel/intern/curves_geometry_test.cc
+++ b/source/blender/blenkernel/intern/curves_geometry_test.cc
@@ -16,7 +16,7 @@ static CurvesGeometry create_basic_curves(const int 
points_size, const int curve
 
   const int curve_length = points_size / curves_size;
   for (const int i : curves.curves_range()) {
-    curves.offsets_for_write()[i] = points_size * curve_length;
+    curves.offsets_for_write()[i] = curve_length * i;
   }
   curves.offsets_for_write().last() = points_size;

_______________________________________________
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