solidcraft-smlib: a build without SMLib keeps the sweeps' curve lists without a dead-code error

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017itGh5fpMEousnZ91cYcVt
This commit is contained in:
jyviko
2026-10-21 13:26:19 -04:00
parent d20e91f8cf
commit 36b7aa267d
+2 -1
View File
@@ -22,7 +22,8 @@ pub const SWEEP_FOLLOW: i32 = 0;
pub const SWEEP_TRANSLATE: i32 = 1;
/// A curve list as the C API reads it: kinds (with a NURBS curve's degree and point count) and
/// each curve's numbers.
/// each curve's numbers. Only the calls read them, which a build without SMLib does not have.
#[cfg_attr(not(feature = "native"), allow(dead_code))]
pub struct List<'a> {
pub kinds: &'a [i64],
pub reals: &'a [f64],