Preserve unsupported closed spline deletion state

This commit is contained in:
ramox81 committed 2026-09-11 11:05:52 +03:00
1 parent abab89e206
commit 36b7998773
1 file changed
+1 -1
+1 -1
View File
@@ -217,7 +217,7 @@ impl CadCommand for SplineditCommand {
let weights = if source.weights.is_empty() { vec![1.0; source.control_points.len()] }
else { source.weights.clone() };
let curve = cadkernel::space::NurbsCurve3::new_strict(source.degree as usize, controls,
source.knots.clone(), weights).map(|curve| curve.with_periodicity(source.flags.periodic));
source.knots.clone(), weights).map(|curve| curve.with_periodicity(source.flags.periodic || source.flags.closed));
let Some(curve) = curve.and_then(|curve| curve.without_control_vertex(index)) else { return CmdResult::NeedPoint; };
let mut spline = source.clone();
spline.degree = curve.degree() as i32;