Merge pull request #16463 from Noshyaar/pr1

3DEditor: fix selecting node in viewport not update inspector
This commit is contained in:
Rémi Verschelde 2018-02-13 17:06:49 +01:00 committed by GitHub
commit a8edad2128
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -318,6 +318,9 @@ void SpatialEditorViewport::_select(Spatial *p_node, bool p_append, bool p_singl
editor_selection->clear();
editor_selection->add_node(p_node);
if (Engine::get_singleton()->is_editor_hint())
editor->call("edit_node", p_node);
} else {
if (editor_selection->is_selected(p_node) && p_single) {