fancier lifetimes
This commit is contained in:
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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user