Skip to content

Commit

Permalink
Fix type of textureInfo.schema.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
is0263rf committed Apr 16, 2024
1 parent f2a097e commit 867c283
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/VRMKit/VRM/Material.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ extension GLTF {
public let extras: CodableAny?

public struct MaterialsMToonTextureInfo: Codable {
public let index: Double
public let texCoord: Double?
public let index: Int
public let texCoord: Int?
public let extensions: CodableAny?
public let extras: CodableAny?

public init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
index = try decodeDouble(key: .index, container: container)
texCoord = try? decodeDouble(key: .texCoord, container: container)
index = try container.decode(Int.self, forKey: .index)
texCoord = try container.decodeIfPresent(Int.self, forKey: .texCoord)
extensions = try container.decodeIfPresent(CodableAny.self, forKey: .extensions)
extras = try container.decodeIfPresent(CodableAny.self, forKey: .extras)
}
Expand Down

0 comments on commit 867c283

Please sign in to comment.