diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-30 10:01:48 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-30 10:01:48 +0100 |
commit | 080c795054554c1f27350f28b3811eaf9f4af8fc (patch) | |
tree | 9ededa9166aba8b4343fbd8a11b7441fae6cf09d /scene | |
parent | 30b5d8b2610e9822fb2dffbc6e99678289122077 (diff) | |
parent | 9f026d5274a1740b07a3fd59eedb2a456c0eb326 (diff) |
Merge pull request #66266 from Calinou/editor-description-fix-tooltip-update
Fix Editor Description tooltip not changing until scene is reopened
Diffstat (limited to 'scene')
-rw-r--r-- | scene/main/node.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index de486094fe..ba75c92c85 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -1987,7 +1987,16 @@ String Node::get_scene_file_path() const { } void Node::set_editor_description(const String &p_editor_description) { + if (data.editor_description == p_editor_description) { + return; + } + data.editor_description = p_editor_description; + + if (Engine::get_singleton()->is_editor_hint() && is_inside_tree()) { + // Update tree so the tooltip in the Scene tree dock is also updated in the editor. + get_tree()->tree_changed(); + } } String Node::get_editor_description() const { |