aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/spatial_editor_plugin.cpp
diff options
context:
space:
mode:
authorPoommetee Ketson2018-02-07 13:27:39 +0700
committerHein-Pieter van Braam2018-02-19 22:13:44 +0100
commitba36ef54659f4939b9ec19a56453dffc343eac58 (patch)
treedefc9b48457151a5a2531dccf878c59182289d8f /editor/plugins/spatial_editor_plugin.cpp
parent41f9904e713a44702aa31123986865af2fe4f6ab (diff)
downloadgodot-ba36ef54659f4939b9ec19a56453dffc343eac58.tar.gz
godot-ba36ef54659f4939b9ec19a56453dffc343eac58.tar.zst
godot-ba36ef54659f4939b9ec19a56453dffc343eac58.zip
3DEditor: fix selecting node in viewport not update inspector
(cherry picked from commit cfac160f9fb29996a38e1360f223236ccf15c48c)
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.cpp')
-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 bd2cdf0dd..27147cbb6 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) {