forked from 1b-agent/opencadstudio-upstream
style: apply cargo fmt across workspace (as on main)
Formats the branch the way main's 9cf9ff2 did, so merging main only
conflicts where the code itself differs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013RyGiMXcsf9HTKfqDxaQGt
This commit is contained in:
532 files changed
+56995
-33416
No files matched your search
@@ -3,8 +3,8 @@
|
||||
// The command only collects the base point; the host performs the copy when it
|
||||
// receives the dispatched `COPYBASE_AT <x> <y> <z>` token.
|
||||
|
||||
use glam::DVec3;
|
||||
use crate::t;
|
||||
use glam::DVec3;
|
||||
|
||||
use crate::command::{CadCommand, CmdResult};
|
||||
|
||||
|
||||
@@ -15,9 +15,9 @@ pub const MENU_ITEMS: &[(&str, &str, IconKind)] = &[
|
||||
|
||||
// ── CadCommand implementation ─────────────────────────────────────────────
|
||||
|
||||
use crate::t;
|
||||
use codec::Handle;
|
||||
use glam::{DVec3, Vec3};
|
||||
use crate::t;
|
||||
|
||||
use crate::command::{CadCommand, CmdResult};
|
||||
use crate::scene::model::wire_model::WireModel;
|
||||
@@ -53,10 +53,18 @@ impl PasteCommand {
|
||||
if too_heavy {
|
||||
if let Some(bbox_wire) = Self::bbox_outline(&wires) {
|
||||
// Drop the full wires — the box is all the ghost needs now.
|
||||
return Self { wires: Vec::new(), bbox_wire: Some(bbox_wire), base };
|
||||
return Self {
|
||||
wires: Vec::new(),
|
||||
bbox_wire: Some(bbox_wire),
|
||||
base,
|
||||
};
|
||||
}
|
||||
}
|
||||
Self { wires, bbox_wire: None, base }
|
||||
Self {
|
||||
wires,
|
||||
bbox_wire: None,
|
||||
base,
|
||||
}
|
||||
}
|
||||
|
||||
/// Build a closed rectangle outline around the XY extent of `wires`, in the
|
||||
@@ -130,8 +138,13 @@ impl CadCommand for PasteCommand {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ── Autocomplete registry ─────────────────────────────────
|
||||
inventory::submit!(crate::command::CommandRegistration { names: &["PASTE", "PASTECLIP"] }); // PasteCommand
|
||||
inventory::submit!(crate::command::CommandRegistration { names: &["PASTEORIG"] });
|
||||
inventory::submit!(crate::command::CommandRegistration { names: &["PASTEBLOCK"] });
|
||||
inventory::submit!(crate::command::CommandRegistration {
|
||||
names: &["PASTE", "PASTECLIP"]
|
||||
}); // PasteCommand
|
||||
inventory::submit!(crate::command::CommandRegistration {
|
||||
names: &["PASTEORIG"]
|
||||
});
|
||||
inventory::submit!(crate::command::CommandRegistration {
|
||||
names: &["PASTEBLOCK"]
|
||||
});
|
||||
Reference in new issue
Block a user