-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Scene Switcher Tutorial may be outdated #778
Comments
It's probably a typo. Use remove_child() instead |
Thanks Theo. that gets me one step closer. It now throws the error:
Pasting my code here in the hopes that someone can point out where things have gone wrong:
|
current_scene is an object, not a function, remove () at the end |
Thanks again Theo, silly mistake on my part. Still have a problem though, as clicking the button results in the program being terminated with the dialog |
For any similarly confused newbies that come across this: Seems like it was the Seems to work okay now, though I'm not sure if pulling |
Issue closed. |
* Make noncopyable constructor and destructor default C++11 provides the functionality. Defining empty functions cause all classes derived from noncopyable to be non-trivially constructible and non-trivially destructible. For example, matrix with compile-time layout by definition does not require an explicit destructor and should be trivially destructible ; however, deriving from noncopyable makes it non-trivially destrutible. This also affects vector<T, 2> and vector<T, 3>. * Delete array2d copy constructor and assignment operators
Followed the Scene Switcher tutorial instructions exactly (no typos).
After saving the three scripts I then hit play and clicked the button. The program failed with the following error:
Invalid Call. Unexisting function 'remove' in base 'Viewport'.
I tried replacing the line
get_scene().get_root().remove(current_scene)
withget_scene().get_root().remove_node(current_scene)
but encountered the same error.The text was updated successfully, but these errors were encountered: