Fix #64: one 3D compass in the viewer
Two implementations of Show 3D Reference Axes had landed (M13.5 and M14.5) and both drew, offset by a few pixels: lines, and arrows. Keep the arrowed one (perspective-correct, shown while a 3D layer is active) and test that only one is drawn. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
0dcbe325ab
commit
77c056a8db
@@ -391,6 +391,8 @@ fn reference_axes_toggle_from_the_grid_menu() {
|
||||
h.state_mut().session.execute("layer.setSwitch", json!({"layers": [box_id.0], "switch": "threeD", "value": true})).unwrap();
|
||||
h.run_steps(3);
|
||||
assert!(h.state().auto.find("viewer.referenceAxes").is_some(), "on by default (Settings ▸ 3D)");
|
||||
// Issue #64: one compass, not two.
|
||||
assert_eq!(h.state().auto.query("viewer.referenceAxes").len(), 1);
|
||||
let g = rect(&h, "viewer.grid").center();
|
||||
click(&mut h, g);
|
||||
h.run_steps(2);
|
||||
|
||||
Reference in New Issue
Block a user