Skip to content

Commit 993a850

Browse files
committed
Fix: Revert part of previous fix breaking curves tests
The change changes the way the converted curves are evaluated. It may be better and a valid choice, but it needs to be considered more carefully since it would be a breaking change.
1 parent bfd43d4 commit 993a850

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/blender/geometry/intern/set_curve_type.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,7 @@ static bke::CurvesGeometry convert_curves_to_nurbs(const bke::CurvesGeometry &sr
527527
};
528528

529529
auto poly_to_nurbs = [&](const IndexMask &selection) {
530-
index_mask::masked_fill<int8_t>(dst_curves.nurbs_orders_for_write(), 2, selection);
531-
index_mask::masked_fill<int>(dst_curves.resolution_for_write(), 1, selection);
530+
index_mask::masked_fill<int8_t>(dst_curves.nurbs_orders_for_write(), 4, selection);
532531
array_utils::copy_group_to_group(
533532
src_points_by_curve, dst_points_by_curve, selection, src_positions, dst_positions);
534533
fill_weights_if_necessary(selection);

0 commit comments

Comments
 (0)