Align single and continuous point commands

This commit is contained in:
ramox81 2026-08-22 17:18:29 +03:00
commit ac99942519
2 changed files with 28 additions and 10 deletions

View file

@ -674,9 +674,13 @@ impl OpenCADStudio {
}
}
"POINT" => {
"POINT" | "MULTIPOINT" => {
use crate::modules::draw::draw::point::PointCommand;
let new_cmd = PointCommand::new();
let new_cmd = if cmd == "MULTIPOINT" {
PointCommand::multiple()
} else {
PointCommand::new()
};
self.command_line.push_info(&new_cmd.prompt());
self.tabs[i].active_cmd = Some(Box::new(new_cmd));
}