Skip to content

Commit

Permalink
fix WriteBufferView padding
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Oct 13, 2020
1 parent ee76631 commit d503182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modeler/modeler.go
Expand Up @@ -177,7 +177,7 @@ func WriteBufferView(doc *gltf.Document, target gltf.Target, data interface{}) u
bufferView := &gltf.BufferView{
Buffer: uint32(len(doc.Buffers)) - 1,
ByteLength: size,
ByteOffset: offset,
ByteOffset: offset + padding,
Target: target,
}
doc.BufferViews = append(doc.BufferViews, bufferView)
Expand Down

0 comments on commit d503182

Please sign in to comment.