refactor: remove remaining world_offset vestiges in app/
Clean up the last zero-valued world_offset locals outside the scene tessellation core: the UCS wire-affine / grid-basis origin shift (document.rs), the coordinate readout (view.rs), grip absolute-apply (update.rs), the dead properties-edit re-offset guard, the MTEXT preview glyph-box shift (mtext_editor.rs), and the cross-drawing paste correction (commands.rs / cmd_result.rs) — including the now-dead `clipboard_world_offset` field. Coordinates are absolute throughout. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
ef8d5b2610
commit
cc43969ce0
8 changed files with 12 additions and 82 deletions
|
|
@ -2713,18 +2713,10 @@ impl OpenCADStudio {
|
|||
}
|
||||
}
|
||||
|
||||
// Paper-space entities use sheet coordinates (no world_offset).
|
||||
// Only add world_offset when converting local → DXF space in model space.
|
||||
let wo_vec = if self.tabs[i].scene.current_layout == "Model" {
|
||||
let wo = [0.0_f64; 3];
|
||||
glam::DVec3::new(wo[0], wo[1], wo[2])
|
||||
} else {
|
||||
glam::DVec3::ZERO
|
||||
};
|
||||
let apply = if grip.is_translate {
|
||||
GripApply::Translate(snapped - grip.last_world)
|
||||
} else {
|
||||
GripApply::Absolute(snapped + wo_vec)
|
||||
GripApply::Absolute(snapped)
|
||||
};
|
||||
self.tabs[i]
|
||||
.scene
|
||||
|
|
|
|||
Loading…
Reference in a new issue