From 8ebe956421c210f4f869156030159e374686178c Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 18 Apr 2014 16:26:46 -0300 Subject: [PATCH] -Revert change that broke paths --- tools/editor/scene_tree_editor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/editor/scene_tree_editor.cpp b/tools/editor/scene_tree_editor.cpp index 162475cb9fb..78f09aa767f 100644 --- a/tools/editor/scene_tree_editor.cpp +++ b/tools/editor/scene_tree_editor.cpp @@ -715,8 +715,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(); } }