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.
This commit is contained in:
parent
3d35919656
commit
2e29f6c59e
1 changed files with 1 additions and 3 deletions
|
|
@ -441,9 +441,7 @@ mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
fn tri_count(body: &Body) -> usize {
|
fn tri_count(body: &Body) -> usize {
|
||||||
mesh_from_solid(body, [0.7, 0.7, 0.7, 1.0])
|
tessellation(body).mesh.triangles.len()
|
||||||
.map(|m| m.lods[0].indices.len() / 3)
|
|
||||||
.unwrap_or(0)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue