diff options
author | Poommetee Ketson <poommetee@protonmail.com> | 2018-02-07 13:27:39 +0700 |
---|---|---|
committer | Poommetee Ketson <poommetee@protonmail.com> | 2018-02-07 13:27:39 +0700 |
commit | cfac160f9fb29996a38e1360f223236ccf15c48c (patch) | |
tree | 8bc32a48a180e41d816001cfee0a9c781fbdde12 | |
parent | b0a73077cb8395ad39124dd08490195adbfb90c9 (diff) |
3DEditor: fix selecting node in viewport not update inspector
-rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index bd2cdf0dda..27147cbb67 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) { |