fixed editor NodePath property
This commit is contained in:
parent
cde48d0c9c
commit
87fd153215
|
@ -410,6 +410,8 @@ public:
|
|||
|
||||
static void add_editor_plugin(EditorPlugin *p_editor);
|
||||
static void remove_editor_plugin(EditorPlugin *p_editor);
|
||||
static EditorNode * get_singleton() { return singleton; }
|
||||
|
||||
|
||||
void edit_node(Node *p_node);
|
||||
void edit_resource(const Ref<Resource>& p_resource);
|
||||
|
|
|
@ -706,7 +706,8 @@ void SceneTreeDialog::_cancel() {
|
|||
void SceneTreeDialog::_select() {
|
||||
|
||||
if (tree->get_selected()) {
|
||||
emit_signal("selected",tree->get_selected()->get_path());
|
||||
Node *scene = EditorNode::get_singleton()->get_edited_scene();
|
||||
emit_signal("selected","/root/" + scene->get_parent()->get_path_to(tree->get_selected()));
|
||||
hide();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue