diff --git a/crates/bevy_gltf/src/loader.rs b/crates/bevy_gltf/src/loader.rs index ff6f96bd21b56..048c2f32660aa 100644 --- a/crates/bevy_gltf/src/loader.rs +++ b/crates/bevy_gltf/src/loader.rs @@ -74,6 +74,19 @@ pub struct GltfLoader { pub(crate) custom_vertex_attributes: HashMap, } +impl GltfLoader { + /// Creates a new glTF loader. + pub fn new( + supported_compressed_formats: CompressedImageFormats, + custom_vertex_attributes: HashMap, + ) -> Self { + GltfLoader { + supported_compressed_formats, + custom_vertex_attributes, + } + } +} + impl AssetLoader for GltfLoader { fn load<'a>( &'a self,