feat(draw): continue paths on initial Enter

Start LINE, PLINE, ARC, and SPLINE from the latest path endpoint when Enter accepts the first point. Fall back to the active UCS origin.\n\nRefs #610
This commit is contained in:
Hakan Seven committed 2026-08-01 19:09:19 +03:00
1 parent 796d7d91d0
commit dccaf95f49
10 files changed
+175 -12

No files matched your search

+4
View File
@@ -132,6 +132,9 @@ pub(super) struct DocumentTab {
/// "Previous" keyword at any Select objects prompt (#426).
pub(super) prev_selection: Vec<acadrust::Handle>,
pub(super) last_cmd: Option<String>,
/// Most recently created path drawable. A fresh LINE/PLINE can accept its
/// current final endpoint with Enter before the first click.
pub(super) last_draw_anchor: Option<Handle>,
pub(super) snap_result: Option<SnapResult>,
pub(super) active_grip: Option<GripEdit>,
pub(super) selected_grips: Vec<GripDef>,
@@ -437,6 +440,7 @@ impl DocumentTab {
layers: LayerPanel::default(),
active_cmd: None,
last_cmd: None,
last_draw_anchor: None,
snap_result: None,
active_grip: None,
selected_grips: vec![],