From cfac160f9fb29996a38e1360f223236ccf15c48c Mon Sep 17 00:00:00 2001 From: Poommetee Ketson Date: Wed, 7 Feb 2018 13:27:39 +0700 Subject: [PATCH] 3DEditor: fix selecting node in viewport not update inspector --- editor/plugins/spatial_editor_plugin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index bd2cdf0dda7..27147cbb676 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -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) {