diff --git a/src/lib.rs b/src/lib.rs index 2b01246..f92e707 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -47,10 +47,10 @@ where P: AsRef, { // Run gltf - let (doc, buffers, images) = gltf::import(&path)?; + let (doc, buffers, _images) = gltf::import(&path)?; // Init data and collection useful for conversion - let mut data = GltfData::new(buffers, images, &path); + let mut data = GltfData::new(buffers, &path); // Convert gltf -> easy_gltf let mut res = vec![]; diff --git a/src/utils/gltf_data.rs b/src/utils/gltf_data.rs index 665b13a..dc893d9 100644 --- a/src/utils/gltf_data.rs +++ b/src/utils/gltf_data.rs @@ -10,7 +10,6 @@ use std::sync::Arc; /// Helps to simplify the signature of import related functions. pub struct GltfData { pub buffers: Vec, - pub images: Vec, pub base_dir: PathBuf, pub materials: HashMap, Arc>, pub rgb_images: HashMap>, @@ -19,7 +18,7 @@ pub struct GltfData { } impl GltfData { - pub fn new

(buffers: Vec, images: Vec, path: P) -> Self + pub fn new

(buffers: Vec, path: P) -> Self where P: AsRef, { @@ -27,7 +26,6 @@ impl GltfData { base_dir.pop(); GltfData { buffers, - images, base_dir, materials: Default::default(), rgb_images: Default::default(),