3DEditor: fix selecting node in viewport not update inspector

(cherry picked from commit cfac160f9f)
This commit is contained in:
Poommetee Ketson 2018-02-07 13:27:39 +07:00 committed by Hein-Pieter van Braam
parent 41f9904e71
commit ba36ef5465
1 changed files with 3 additions and 0 deletions

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) {