The Box, Cylinder, Sphere, Torus and Coil dialogs now start their sizes in the design's units with the unit written out ("20 mm", "20 in"), like the other dialogs. OK makes the same sizes as before. Fixes #630.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
831fa34752
commit
ce5762d873
5 files changed
+294
-19
No files matched your search
@@ -879,8 +879,10 @@ fn primitives_go_on_the_picked_face() {
|
||||
assert_eq!(p["axis"], json!([0.0, 0.0, 1.0]), "standing on the top face: {p}");
|
||||
assert!(near(c, Vec3::new(8.0, 10.0, 30.0)), "{c:?}");
|
||||
|
||||
// A box stands on the face, centred on the picked point across it.
|
||||
let (_, c) = primitive_on(&mut app, vec![top.clone()], "solid.box", |_| {});
|
||||
// A box stands on the face, centred on the picked point across it. Sizes that are plain
|
||||
// lengths ("20 mm") give a plain corner.
|
||||
let (p, c) = primitive_on(&mut app, vec![top.clone()], "solid.box", |_| {});
|
||||
assert_eq!(p["corner"], json!([-2.0, 0.0, 20.0]), "{p}");
|
||||
assert!(near(c, Vec3::new(8.0, 10.0, 30.0)), "{c:?}");
|
||||
|
||||
let (p, c) = primitive_on(&mut app, vec![top], "solid.torus", |_| {});
|
||||
|
||||
Reference in new issue
Block a user