feat: streamline Spatial initialization in Reify for dense wireframe cubes

This commit is contained in:
MayaTheShy
2025-11-08 21:38:36 -05:00
parent ff38a0422b
commit 3567e5b5c0

View File

@@ -184,13 +184,12 @@ impl Reify for BridgeState {
// Entity types: 0=Unknown, 1=Box, 2=Sphere, 3=Model // Entity types: 0=Unknown, 1=Box, 2=Sphere, 3=Model
// For now, render all as dense wireframe cubes (which we know works) // For now, render all as dense wireframe cubes (which we know works)
let mut spatial = Spatial::default();
spatial.set_transform(transform);
Some(( Some((
*id, *id,
spatial.build().child( Spatial::default()
Lines::new(cube_lines).build() .transform(transform)
) .build()
.child(Lines::new(cube_lines).build())
)) ))
}); });