mirror of
https://codeberg.org/icewind/vmdl.git
synced 2026-06-03 16:44:11 +02:00
fix index order
This commit is contained in:
parent
6c7bce133f
commit
150709864c
1 changed files with 2 additions and 2 deletions
|
|
@ -144,10 +144,10 @@ impl Strip {
|
||||||
Either::Left((0..self.indices.len()).flat_map(move |i| {
|
Either::Left((0..self.indices.len()).flat_map(move |i| {
|
||||||
let cw = i & 1;
|
let cw = i & 1;
|
||||||
let idx = offset + i;
|
let idx = offset + i;
|
||||||
[idx, idx + 1 - cw, idx + 2 - cw].into_iter()
|
[idx, idx + 1 - cw, idx + 2 - cw].into_iter().rev()
|
||||||
}))
|
}))
|
||||||
} else {
|
} else {
|
||||||
Either::Right(self.indices.clone())
|
Either::Right(self.indices.clone().rev())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue