mirror of
https://codeberg.org/icewind/vmdl.git
synced 2026-06-04 00:54:14 +02:00
fix indexes
This commit is contained in:
parent
3649ffd9b2
commit
4876ccf0f4
4 changed files with 36 additions and 6 deletions
|
|
@ -214,6 +214,7 @@ impl Strip {
|
|||
|
||||
pub fn indices(&self) -> impl Iterator<Item = [usize; 3]> + 'static {
|
||||
if self.flags.contains(StripFlags::IS_TRI_STRIP) {
|
||||
dbg!("strip");
|
||||
let offset = self.indices.start;
|
||||
Either::Left((0..self.indices.len()).map(move |i| {
|
||||
let cw = i & 1;
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ impl StripGroupHeader {
|
|||
index_range(
|
||||
self.vertex_offset,
|
||||
self.vertex_count,
|
||||
size_of::<u16>(), // Vertex index from .VVD's vertex array
|
||||
size_of::<Vertex>(), // Vertex index from .VVD's vertex array
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue