Skip to content

Commit

Permalink
remove spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
vldmrkl committed Feb 10, 2019
1 parent e271722 commit 101f21b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions uottahack-2019/uottahack-2019/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class ViewController: UIViewController, ARSCNViewDelegate {
func renderer(_ renderer: SCNSceneRenderer, didAdd node: SCNNode, for anchor: ARAnchor) {
guard anchor is ARImageAnchor else { return }
guard let container = sceneView.scene.rootNode.childNode(withName: "container", recursively: false) else { return }

container.removeFromParentNode()
node.addChildNode(container)
container.isHidden = false
Expand All @@ -76,11 +77,8 @@ class ViewController: UIViewController, ARSCNViewDelegate {

guard let video = container.childNode(withName: "video", recursively: true) else { return }
video.geometry?.firstMaterial?.diffuse.contents = videoScene
container.addChildNode(video)




container.addChildNode(video)
}

// MARK: - ARSCNViewDelegate
Expand Down

0 comments on commit 101f21b

Please sign in to comment.