feat: streamline Spatial initialization in Reify for dense wireframe cubes
This commit is contained in:
@@ -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())
|
||||||
))
|
))
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user