summaryrefslogtreecommitdiff
path: root/demos/misc/autoload
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2014-10-03 00:25:53 -0300
committerJuan Linietsky <reduzio@gmail.com>2014-10-03 00:25:53 -0300
commit1b3a10891ebdc6e76a81c8915ba08065311e17d3 (patch)
tree3dc1fb08feaafe52726c57ee283253768756a675 /demos/misc/autoload
parentb24fe3dd206ce391ec4c5f68d32fc2259f275563 (diff)
missing demo files
Diffstat (limited to 'demos/misc/autoload')
-rw-r--r--demos/misc/autoload/global.gd5
1 files changed, 0 insertions, 5 deletions
diff --git a/demos/misc/autoload/global.gd b/demos/misc/autoload/global.gd
index dca661a31a..d9fa308a2f 100644
--- a/demos/misc/autoload/global.gd
+++ b/demos/misc/autoload/global.gd
@@ -9,11 +9,6 @@ func goto_scene(scene):
var s = ResourceLoader.load(scene)
#queue erasing old (don't use free because that scene is calling this method)
current_scene.queue_free()
- # Remove the scene before loading the previous one.
- # The node is removed when deleted anyway, but this will fix issues that
- # might arise if both have a root node with the same name,
- # as adding both together will cause the second to be renamed. (not usually a problem, but you might be wanting to look for the node later and not find it)
- get_scene().get_root().remove(current_scene)
#instance the new scene
current_scene = s.instance()
#add it to the active scene, as child of root