Skip to content

Commit

Permalink
Merge branch 'master' of github:magicien/GLTFSceneKit
Browse files Browse the repository at this point in the history
- pull request #5
  • Loading branch information
magicien committed Nov 30, 2017
2 parents 3c80fb7 + cc312a6 commit 49c15eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Common/GLTFUnarchiver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1060,8 +1060,8 @@ public class GLTFUnarchiver {

private func loadAttributes(_ attributes: [String: GLTFGlTFid]) throws -> [SCNGeometrySource] {
var sources = [SCNGeometrySource]()

for (attribute, accessorIndex) in attributes {
// Sort attributes to keep correct semantic order
for (attribute, accessorIndex) in attributes.sorted(by: { $0.0 < $1.0 }) {
if let semantic = attributeMap[attribute] {
let accessor = try self.loadVertexAccessor(index: accessorIndex, semantic: semantic)
sources.append(accessor)
Expand Down

0 comments on commit 49c15eb

Please sign in to comment.