Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (m <- value.meshes.indices) {
- val mesh = value.meshes(m)
- file.writeInt32(mesh.id)
- file.writeString(mesh.name)
- file.writeInt32(mesh.textures.length)
- for (t <- mesh.textures.indices) {
- val texture = mesh.textures(t)
- file.writeString(texture.name)
- file.writeString(texture.fileName)
- }
- }
- for {
- mesh <- value.meshes
- _ = file.writeInt32(mesh.id)
- _ = file.writeString(mesh.name)
- _ = file.writeInt32(mesh.textures.length)
- texture <- mesh.textures
- _ = file.writeString(texture.name)
- _ = file.writeString(texture.fileName)
- } ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement