From 77486da1c97c988205c8bb117b1168a1a0ef6a46 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 9 Jan 2025 22:45:13 +0100 Subject: occlusion --- world/src/main.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'world/src/main.rs') diff --git a/world/src/main.rs b/world/src/main.rs index af32222..694d57b 100644 --- a/world/src/main.rs +++ b/world/src/main.rs @@ -78,12 +78,10 @@ fn main() -> Result<()> { Packet::Connect(random()).write(&mut sock)?; - // let (gltf, buffers, _) = gltf::import(&args.scene)?; let path_base = args.scene.parent().unwrap(); - - let gltf = Gltf::from_reader_without_validation(File::open(&args.scene)?)?; - - let buffers = import_buffers(&gltf, Some(path_base), None)?; + let mut gltf = Gltf::from_reader_without_validation(File::open(&args.scene)?)?; + let blob = gltf.blob.take(); + let buffers = import_buffers(&gltf, Some(path_base), blob)?; let mut prefab = Prefab::default(); -- cgit v1.2.3-70-g09d2