We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3c80fb7 + cc312a6 commit 49c15ebCopy full SHA for 49c15eb
Source/Common/GLTFUnarchiver.swift
@@ -1060,8 +1060,8 @@ public class GLTFUnarchiver {
1060
1061
private func loadAttributes(_ attributes: [String: GLTFGlTFid]) throws -> [SCNGeometrySource] {
1062
var sources = [SCNGeometrySource]()
1063
-
1064
- for (attribute, accessorIndex) in attributes {
+ // Sort attributes to keep correct semantic order
+ for (attribute, accessorIndex) in attributes.sorted(by: { $0.0 < $1.0 }) {
1065
if let semantic = attributeMap[attribute] {
1066
let accessor = try self.loadVertexAccessor(index: accessorIndex, semantic: semantic)
1067
sources.append(accessor)
0 commit comments