forked from 1b-agent/opencadstudio-upstream
Preserve unsupported closed spline deletion state
This commit is contained in:
1 parent
abab89e206
commit
36b7998773
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user