summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-02-13 17:06:49 +0100
committerGitHub <noreply@github.com>2018-02-13 17:06:49 +0100
commita8edad212846a3c1725df31789bd341c3f2eaca5 (patch)
treeef2833922ee5f22baa703a2c66a2bb02857eee14 /editor/plugins
parent8cfe7988779121a742de6411fda8a243514b584d (diff)
parentcfac160f9fb29996a38e1360f223236ccf15c48c (diff)
Merge pull request #16463 from Noshyaar/pr1
3DEditor: fix selecting node in viewport not update inspector
Diffstat (limited to 'editor/plugins')
-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) {