forked from 1b-agent/opencadstudio-upstream
style: apply cargo fmt across workspace
This commit is contained in:
1 parent
85710e5454
commit
9cf9ff2c5c
531 files changed
+57740
-33906
No files matched your search
@@ -29,13 +29,16 @@ impl OpenCADStudio {
|
||||
self.tabs[i].snap_result = None;
|
||||
}
|
||||
|
||||
pub(super) fn handle_edit_dimension_jog(&mut self, dimension: Handle, point: Option<glam::DVec3>) {
|
||||
pub(super) fn handle_edit_dimension_jog(
|
||||
&mut self,
|
||||
dimension: Handle,
|
||||
point: Option<glam::DVec3>,
|
||||
) {
|
||||
let i = self.active_tab;
|
||||
let valid = matches!(
|
||||
self.tabs[i].scene.document.get_entity(dimension),
|
||||
Some(codec::EntityType::Dimension(
|
||||
codec::entities::Dimension::Linear(_)
|
||||
| codec::entities::Dimension::Aligned(_)
|
||||
codec::entities::Dimension::Linear(_) | codec::entities::Dimension::Aligned(_)
|
||||
))
|
||||
);
|
||||
if !valid {
|
||||
@@ -50,9 +53,7 @@ impl OpenCADStudio {
|
||||
XDataValue::Integer16(387),
|
||||
XDataValue::Integer16(3),
|
||||
XDataValue::Integer16(389),
|
||||
XDataValue::Point3D(codec::types::Vector3::new(
|
||||
point.x, point.y, point.z,
|
||||
)),
|
||||
XDataValue::Point3D(codec::types::Vector3::new(point.x, point.y, point.z)),
|
||||
]
|
||||
});
|
||||
crate::scene::view::dispatch::set_entity_xdata(
|
||||
@@ -79,7 +80,12 @@ impl OpenCADStudio {
|
||||
self.tabs[i].snap_result = None;
|
||||
}
|
||||
|
||||
pub(super) fn handle_space_dimensions(&mut self, base: Handle, others: Vec<Handle>, spacing: Option<f64>) {
|
||||
pub(super) fn handle_space_dimensions(
|
||||
&mut self,
|
||||
base: Handle,
|
||||
others: Vec<Handle>,
|
||||
spacing: Option<f64>,
|
||||
) {
|
||||
let i = self.active_tab;
|
||||
self.push_undo_snapshot(i, "DIMSPACE");
|
||||
if apply_dimspace(&mut self.tabs[i].scene, base, &others, spacing) {
|
||||
|
||||
Reference in new issue
Block a user