why is this split

This commit is contained in:
Quaternions 2024-02-22 00:24:14 -08:00
parent 2273f881b2
commit 3979eec34c

View File

@ -78,9 +78,6 @@ impl Loader{
pub fn get_inner_mut(&mut self)->(&mut RenderConfigLoader,&mut MeshLoader){ pub fn get_inner_mut(&mut self)->(&mut RenderConfigLoader,&mut MeshLoader){
(&mut self.render_config_loader,&mut self.mesh_loader) (&mut self.render_config_loader,&mut self.mesh_loader)
} }
}
impl Loader{
pub fn into_render_configs(mut self)->Result<RenderConfigs,std::io::Error>{ pub fn into_render_configs(mut self)->Result<RenderConfigs,std::io::Error>{
let mut sorted_textures=vec![None;self.render_config_loader.texture_count as usize]; let mut sorted_textures=vec![None;self.render_config_loader.texture_count as usize];
for (texture_path,render_config_id) in self.render_config_loader.texture_paths{ for (texture_path,render_config_id) in self.render_config_loader.texture_paths{