collapse Models struct into Map
This commit is contained in:
parent
20cc3ef96f
commit
1ad6104c14
12
src/rbx.rs
12
src/rbx.rs
@ -719,13 +719,11 @@ pub fn convert(dom:rbx_dom_weak::WeakDom)->map::Map{
|
|||||||
}).collect();
|
}).collect();
|
||||||
map::Map{
|
map::Map{
|
||||||
textures:Vec::new(),//asset_id_from_texture_id.iter().map(|t|t.to_string()).collect(),
|
textures:Vec::new(),//asset_id_from_texture_id.iter().map(|t|t.to_string()).collect(),
|
||||||
models:model::Models::new(
|
indexed_models:indexed_models.into_iter().enumerate()
|
||||||
indexed_models.into_iter().enumerate()
|
.map(|(indexed_model_id,indexed_model)|
|
||||||
.map(|(indexed_model_id,indexed_model)|
|
(model::IndexedModelId::id(indexed_model_id as u32),indexed_model)
|
||||||
(model::IndexedModelId::id(indexed_model_id as u32),indexed_model)
|
).collect(),
|
||||||
).collect(),
|
models,
|
||||||
models,
|
|
||||||
),
|
|
||||||
modes:modes_builder.build(),
|
modes:modes_builder.build(),
|
||||||
attributes:unique_attributes,
|
attributes:unique_attributes,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user