Offset Plane dialog opens at 0 mm (#2327) (#2338)

Thanks @spuder.
This commit is contained in:
Spencer Owen
2026-10-18 09:35:35 -06:00
committed by GitHub
parent 9c7afb6076
commit b1e5a5559e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -523,7 +523,7 @@ impl Dialog {
"solid.pipe" => Dialog::new(Kind::Pipe { diameter: "5 mm".into(), wall: String::new() }, vec![SelInput::new("Path", CURVES, true)]),
"solid.bounding_solid" => Dialog::new(Kind::Stock { margin: "2 mm".into() }, vec![SelInput::new("Bodies (all if none)", BODIES, true)]),
"construct.plane.offset" => {
Dialog::new(Kind::OffsetPlane { offset: "10 mm".into() }, vec![SelInput::new("Plane", PLANES | PLANAR_FACES, false)])
Dialog::new(Kind::OffsetPlane { offset: "0 mm".into() }, vec![SelInput::new("Plane", PLANES | PLANAR_FACES, false)])
}
"construct.plane.midplane" => Dialog::new(
Kind::Midplane,
@@ -10,5 +10,5 @@
{"call": "engine.execute", "params": {"command": "sketch.rectangle.two_point", "params": {"p0": [0, 0], "p1": [10, 10]}}},
{"call": "engine.execute", "params": {"command": "sketch.finish", "params": {}}},
{"call": "engine.execute", "params": {"command": "solid.extrude", "params": {"distance": 10, "operation": "new", "body_name": "Pad"}}},
{"expect": {"errors": 0, "bodies": 2, "bbox": {"body": "Pad", "min": [null, null, 30], "max": [null, null, 40]}}}
{"expect": {"errors": 0, "bodies": 2, "bbox": {"body": "Pad", "min": [null, null, 20], "max": [null, null, 30]}}}
]