diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-04-19 16:47:03 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-04-19 16:47:03 -0300 |
commit | 6f1410a8370cfb0b6fcbe072214ce1268cefdf04 (patch) | |
tree | 51c48926fb55726f6743fe649db26c38b60d1d7c /tools | |
parent | a4c1fa12a54df2fe332db2ab08a03c844e4dcc93 (diff) | |
parent | 8ebe956421c210f4f869156030159e374686178c (diff) |
Merge branch 'master' of https://github.com/okamstudio/godot
Diffstat (limited to 'tools')
-rw-r--r-- | tools/editor/scene_tree_editor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/editor/scene_tree_editor.cpp b/tools/editor/scene_tree_editor.cpp index ca1a6bddd1..b5928efdac 100644 --- a/tools/editor/scene_tree_editor.cpp +++ b/tools/editor/scene_tree_editor.cpp @@ -718,8 +718,7 @@ void SceneTreeDialog::_cancel() { void SceneTreeDialog::_select() { if (tree->get_selected()) { - Node *scene = EditorNode::get_singleton()->get_edited_scene(); - emit_signal("selected","/root/" + scene->get_parent()->get_path_to(tree->get_selected())); + emit_signal("selected",tree->get_selected()->get_path()); hide(); } } |