The Skung Rockification of Ziggy Skungdust and the SIMD's
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import Foundation
|
||||
import Maths
|
||||
|
||||
|
||||
public struct ObjReader
|
||||
@ -115,8 +116,8 @@ fileprivate struct ObjMtlLoader
|
||||
{
|
||||
materials[name] = mat!
|
||||
}
|
||||
mat = .init()
|
||||
name = String(s[0])
|
||||
mat = .init(name: name)
|
||||
}
|
||||
|
||||
file.preHandle { s in if s != "newmtl" && mat == nil { throw ObjLoaderError.unexpectedTag } }
|
||||
|
Reference in New Issue
Block a user