summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoommetee Ketson <poommetee@protonmail.com>2018-02-07 13:27:39 +0700
committerPoommetee Ketson <poommetee@protonmail.com>2018-02-07 13:27:39 +0700
commitcfac160f9fb29996a38e1360f223236ccf15c48c (patch)
tree8bc32a48a180e41d816001cfee0a9c781fbdde12
parentb0a73077cb8395ad39124dd08490195adbfb90c9 (diff)
3DEditor: fix selecting node in viewport not update inspector
-rw-r--r--editor/plugins/spatial_editor_plugin.cpp3
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) {