summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/editor/scene_tree_editor.cpp3
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();
}
}