summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHristo Iliev <capitane71@gmail.com>2024-09-02 15:00:57 +0300
committerHristo Iliev <capitane71@gmail.com>2024-09-02 15:39:29 +0300
commitdabeaa6a4b9ed6f636d9480c82cc0c8e66162376 (patch)
treea6ce0730959c4fb946c4a3aab1a145e9f6d88e70
parent61598c5c88d95b96811d386cb20d714c35f4c6d7 (diff)
downloadredot-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.cpp4
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 {