From 2e29f6c59ec3e38c72d9a2cf5efc7575b6cfaaa4 Mon Sep 17 00:00:00 2001 From: Sebastian <106036+schoeller@users.noreply.github.com> Date: Mon, 24 Aug 2026 19:01:19 +0200 Subject: [PATCH] fix(tests): repair solid_model tri_count helper after upstream merge mesh_from_solid was removed in the upstream merge; use tessellation(body).mesh.triangles directly. --- src/scene/model/solid_model.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/scene/model/solid_model.rs b/src/scene/model/solid_model.rs index b229981c4..e2b8cedb4 100644 --- a/src/scene/model/solid_model.rs +++ b/src/scene/model/solid_model.rs @@ -441,9 +441,7 @@ mod tests { use super::*; fn tri_count(body: &Body) -> usize { - mesh_from_solid(body, [0.7, 0.7, 0.7, 1.0]) - .map(|m| m.lods[0].indices.len() / 3) - .unwrap_or(0) + tessellation(body).mesh.triangles.len() } #[test]