diff options
author | Hristo Iliev <capitane71@gmail.com> | 2024-09-02 15:00:57 +0300 |
---|---|---|
committer | Hristo Iliev <capitane71@gmail.com> | 2024-09-02 15:39:29 +0300 |
commit | dabeaa6a4b9ed6f636d9480c82cc0c8e66162376 (patch) | |
tree | a6ce0730959c4fb946c4a3aab1a145e9f6d88e70 | |
parent | 61598c5c88d95b96811d386cb20d714c35f4c6d7 (diff) | |
download | redot-engine-dabeaa6a4b9ed6f636d9480c82cc0c8e66162376.tar.gz |
Fix polygon node losing its UV toolbar by adding a call to the show method when assinging a node.
Fixes #96238
-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 60d808952e..804f9c607e 100644 --- a/editor/plugins/abstract_polygon_2d_editor.cpp +++ b/editor/plugins/abstract_polygon_2d_editor.cpp @@ -748,7 +748,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 { |