From c2ee65a83838a0ce13402e2c4634bae409d55071 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 6 Jan 2025 01:33:20 +0100 Subject: a --- world/src/main.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'world/src') diff --git a/world/src/main.rs b/world/src/main.rs index fd354b3..4f641c3 100644 --- a/world/src/main.rs +++ b/world/src/main.rs @@ -26,7 +26,6 @@ fn main() -> Result<()> { let (gltf, buffers, _) = gltf::import(args.scene)?; - let mut parts = Vec::new(); for node in gltf.nodes() { if let Some(mesh) = node.mesh() { for p in mesh.primitives() { @@ -63,17 +62,11 @@ fn main() -> Result<()> { }; let mut out = Vec::new(); part.serialize(&mut out)?; - parts.push(store.set(&out)?); + Packet::Add(Object::new(), store.set(&out)?).serialize(&mut sock)?; } } } - let mut out = Vec::new(); - Prefab(parts).serialize(&mut out)?; - let prefab = store.set(&out)?; - - Packet::Add(Object::new(), prefab).serialize(&mut sock)?; - store.iter(|d| { Packet::RespondResource(d.to_vec()) .serialize(&mut sock) -- cgit v1.2.3-70-g09d2