Skip to content

Commit

Permalink
moc3: count_info: extra space is reserved, not normal alignment/padding
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronsor committed Aug 20, 2023
1 parent e424e29 commit fac1e68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions format/moc3/moc3.go
Original file line number Diff line number Diff line change
Expand Up @@ -773,13 +773,13 @@ func decodeMOC3(d *decode.D) any {
countInfo.blendShapesGlue = int64(d.FieldU32("blend_shapes_glue"))
}

var padding int64
var reserved int64
if version >= moc3Version5_00_00 {
padding = int64(d.AlignBits(256 * 8))
reserved = int64(d.AlignBits(256 * 8))
} else {
padding = int64(d.AlignBits(128 * 8))
reserved = int64(d.AlignBits(128 * 8))
}
d.FieldRawLen("padding", padding)
d.FieldRawLen("reserved", reserved)
})

d.SeekAbs(sectionOffsets.canvasInfo * 8)
Expand Down

0 comments on commit fac1e68

Please sign in to comment.