From ab68a3d0fb715d26912382820ffc238eba9c3f3a Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Wed, 28 Oct 2026 22:11:05 -0400 Subject: [PATCH] View tests: the section cap test draws the cap in the cap colour Since the section hatch per part (#8529), a cut is tinted toward the hatch colour its body's name picks; Body1 picks the steel one, so the cap test's warm pixels were none (cpu_picture_section_caps_hide_the_inside). The test turns the part hatch off: it checks that the cap hides the inside and shows its colour, which the hatch tests cover per part. Co-Authored-By: Claude Opus 5.5 --- crates/engine/src/view.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/engine/src/view.rs b/crates/engine/src/view.rs index df07a28ee..ccc7ac690 100644 --- a/crates/engine/src/view.rs +++ b/crates/engine/src/view.rs @@ -1090,6 +1090,8 @@ mod tests { let mut cam = home_camera(&s).unwrap(); cam.fov = fov; let mut sc = scene(&s, &cam).unwrap(); + // The cap in the cap colour: a part's hatch colour is the one its name picks. + sc.part_hatch = None; assert!(!section_segments(&s.world_state().unwrap().bodies[0].mesh(), Vec3::new(0.0, 15.0, 0.0), -Vec3::Y).is_empty()); // A marker inside the body, behind the cut face. let red = Rgb(255, 0, 0);