diff options
author | Nuno Donato <nunodonato@gmail.com> | 2017-06-26 23:15:22 +0100 |
---|---|---|
committer | Nuno Donato <nunodonato@gmail.com> | 2017-06-26 23:15:22 +0100 |
commit | dc1843201571707ee09f0592ef3b0cd4232c70b8 (patch) | |
tree | 00da1843cff2004a664967d040c636504abbe506 | |
parent | 177aff0aafaabc439a4e2f20d590003b1bc1f5fd (diff) |
Update import dock when editing a resource from the inspector (improved version)
closes #8139. (just in case it wasn't closed well enough the first time :p)
-rw-r--r-- | editor/editor_node.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 117f183322..bb6fcd5250 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -1468,7 +1468,7 @@ void EditorNode::_edit_current() { property_editor->edit(current_res); node_dock->set_node(NULL); object_menu->set_disabled(false); - + EditorNode::get_singleton()->get_import_dock()->set_edit_path(r->get_path()); //resources_dock->add_resource(Ref<Resource>(current_res)); //top_pallete->set_current_tab(1); @@ -1623,7 +1623,6 @@ void EditorNode::_resource_selected(const RES &p_res, const String &p_property) return; RES r = p_res; - EditorNode::get_singleton()->get_import_dock()->set_edit_path(r->get_path()); push_item(r.operator->(), p_property); } |