diff --git a/crates/engine/tests/session.rs b/crates/engine/tests/session.rs index e06b4fbb..de808261 100644 --- a/crates/engine/tests/session.rs +++ b/crates/engine/tests/session.rs @@ -19,9 +19,10 @@ fn session_at(texture_size: u32) -> Session { } /// Whether two documents hold the same content (`Document` has no `PartialEq`). Destructured so -/// a new field must be compared here too. +/// a new public field must be compared here too (crate-private fields, such as `painted_regions`, +/// can't be reached from an integration test). fn same_document(a: &Document, b: &Document) -> bool { - let Document { project, pixels: PixelStore { layers, masks }, baked, bake_paint, resources, bake_meshes } = a; + let Document { project, pixels: PixelStore { layers, masks }, baked, bake_paint, resources, bake_meshes, .. } = a; // Bake meshes have no equality (each holds a mesh and its BVH): the same high polys and cage // stand in for them. let same_meshes = bake_meshes.high.len() == b.bake_meshes.high.len() && bake_meshes.cage.is_some() == b.bake_meshes.cage.is_some();