diff options
author | Hristo Iliev <capitane71@gmail.com> | 2024-09-02 15:00:57 +0300 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-09-17 08:57:45 +0200 |
commit | f4b71b532519ecd9bc235923c4f05ce1b32a18b7 (patch) | |
tree | 0dc7f6e590eeda25c2f7367862bdabf486783b62 | |
parent | 51c86eb085d0eb8118780ef382199dfa7fc0d169 (diff) | |
download | redot-engine-f4b71b532519ecd9bc235923c4f05ce1b32a18b7.tar.gz |
Fix polygon node losing its UV toolbar by adding a call to the show method when assinging a node.
Fixes #96238
(cherry picked from commit dabeaa6a4b9ed6f636d9480c82cc0c8e66162376)
-rw-r--r-- | editor/plugins/abstract_polygon_2d_editor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/plugins/abstract_polygon_2d_editor.cpp b/editor/plugins/abstract_polygon_2d_editor.cpp index f73c494b25..77ae70781d 100644 --- a/editor/plugins/abstract_polygon_2d_editor.cpp +++ b/editor/plugins/abstract_polygon_2d_editor.cpp @@ -751,7 +751,9 @@ AbstractPolygon2DEditor::AbstractPolygon2DEditor(bool p_wip_destructive) { } void AbstractPolygon2DEditorPlugin::edit(Object *p_object) { - polygon_editor->edit(Object::cast_to<Node>(p_object)); + Node *polygon_node = Object::cast_to<Node>(p_object); + polygon_editor->edit(polygon_node); + make_visible(polygon_node != nullptr); } bool AbstractPolygon2DEditorPlugin::handles(Object *p_object) const { |