feat: expose Spline CV in the Draw expansion

This commit is contained in:
ramox81 committed 2026-09-10 15:57:17 +03:00
1 parent b19992cbcb
commit 306d998ebf
4 files changed
+103 -39

No files matched your search

+6 -2
View File
@@ -872,9 +872,13 @@ impl OpenCADStudio {
self.tabs[i].active_cmd = Some(Box::new(new_cmd));
}
"SPLINE" => {
"SPLINE" | "SPLINECV" => {
use crate::modules::draw::draw::spline::SplineCommand;
let new_cmd = SplineCommand::new();
let new_cmd = if cmd == "SPLINECV" {
SplineCommand::control_vertices()
} else {
SplineCommand::new()
};
self.command_line.push_info(&new_cmd.prompt());
self.tabs[i].active_cmd = Some(Box::new(new_cmd));
}