summaryrefslogtreecommitdiff
path: root/world/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'world/src/main.rs')
-rw-r--r--world/src/main.rs8
1 files changed, 3 insertions, 5 deletions
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();