fancier lifetimes

This commit is contained in:
Quaternions 2025-02-03 15:00:26 -08:00
parent 96e8d9aeea
commit cfc71fac67

@ -216,10 +216,9 @@ async fn gimme_them_textures(path:PathBuf,vpk_list:&[vpk::VPK],send_texture:toki
vpks:vpk_list
};
let mut mesh_loader=strafesnet_bsp_loader::loader::ModelLoader::new(finder);
// load models and collect requested textures
for &model_path in mesh_deferred_loader.indices(){
// meshloader is just a pile of references and is very cheap to construct and drop
let mut mesh_loader=strafesnet_bsp_loader::loader::MeshLoader::new(finder,&mut texture_deferred_loader);
let model:vmdl::Model=mesh_loader.load(model_path)?;
for texture in model.textures(){
for search_path in &texture.search_paths{