mirror of
https://codeberg.org/icewind/vbspview.git
synced 2026-06-03 10:14:10 +02:00
cleanup
This commit is contained in:
parent
b56b44d255
commit
80b9a71308
3 changed files with 4 additions and 4608 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -7,3 +7,4 @@ flamegraph.svg
|
||||||
.direnv
|
.direnv
|
||||||
result
|
result
|
||||||
.direnv
|
.direnv
|
||||||
|
mats.txt
|
||||||
|
|
@ -33,13 +33,13 @@ pub fn load_props<'a, I: Iterator<Item = Handle<'a, StaticPropLump>>>(
|
||||||
.map(|(prop, model)| {
|
.map(|(prop, model)| {
|
||||||
let transform =
|
let transform =
|
||||||
Mat4::from_translation(map_coords(prop.origin)) * Mat4::from(prop.rotation());
|
Mat4::from_translation(map_coords(prop.origin)) * Mat4::from(prop.rotation());
|
||||||
Ok::<_, Error>(PropData {
|
PropData {
|
||||||
model,
|
model,
|
||||||
transform,
|
transform,
|
||||||
skin: prop.skin,
|
skin: prop.skin,
|
||||||
})
|
}
|
||||||
})
|
})
|
||||||
.collect::<Result<_, _>>()?;
|
.collect();
|
||||||
|
|
||||||
let materials: HashMap<_, _> = props
|
let materials: HashMap<_, _> = props
|
||||||
.iter()
|
.iter()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue