Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crash #1

Open
Narcissusz opened this issue Nov 4, 2019 · 2 comments
Open

App crash #1

Narcissusz opened this issue Nov 4, 2019 · 2 comments

Comments

@Narcissusz
Copy link

Hello.. Aditthya Bhat

The application crash when press Plus button. Please Fix or advice for me use.

Thank you

@cheungbo-mong
Copy link

Hello.. Aditthya Bhat

The application crash when press Plus button. Please Fix or advice for me use.

Thank you

In LineNode.swfit, change let nodeLine = SCNNode(geometry: boxGeometry) to nodeLine = SCNNode(geometry: boxGeometry)

@MuhammadAsher
Copy link

Fix for app crash on click Plus button
You don't need to create instance on line number 33 ( let nodeLine = SCNNode(geometry: boxGeometry )
You already have initialise on top line number 17 ( private var nodeLine: SCNNode!)

File name LineCode.Swift
Solution: -
Replace Line number 17 into Optional ( private var nodeLine: SCNNode! )
Replace line number 33 into ( nodeLine = SCNNode(geometry: boxGeometry )
Replace line number 34 into ( nodeLine?.position.y = Float(-height/2) + 0.001 )
Replace line number 35 into ( nodeZAlign.addChildNode(nodeLine ?? SCNNode()) )
Replace line number 61 into ( nodeLine?.position.y = Float(-height/2) + 0.001 )

Important:-
If you are creating new instance (nodeLine) on line number 33 for some specific reason. You should change it's name but if it is same which you initialised on line number 17. So you don't need to again initialised it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants