array fix

This commit is contained in:
Grigory Ulanov 2017-06-16 23:11:36 +03:00
parent eb38988063
commit 5d5ae1ab4f
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ final class Logo: SCNNode {
// add texture
let material = SCNMaterial()
material.diffuse.contents = UIImage(named: "art.scnassets/logo-mobile.png")
self.geometry?.materials = [material, material, material, material, material, material]
self.geometry?.materials = Array(repeating: material, count: 6)
}
}