Accept close keywords for polygonal revision clouds

This commit is contained in:
ramox81 committed 2026-09-11 11:18:48 +03:00
1 parent 6c07892d07
commit 6747cce1a8
1 file changed
+3
+3
View File
@@ -725,6 +725,9 @@ impl CadCommand for RevCloudCommand {
return self.on_undo_step();
}
Stage::Create => match keyword.as_str() {
"C" | "CLOSE" if self.creation == CreationMode::Polygonal => {
return Some(if self.points.len() >= 3 { self.on_enter() } else { CmdResult::NeedPoint });
}
"A" | "ARC" | "ARCLENGTH" => self.stage = Stage::ArcLength,
"O" | "OBJECT" => {
self.stage = Stage::Object;