From dabeaa6a4b9ed6f636d9480c82cc0c8e66162376 Mon Sep 17 00:00:00 2001 From: Hristo Iliev Date: Mon, 2 Sep 2024 15:00:57 +0300 Subject: [PATCH] Fix polygon node losing its UV toolbar by adding a call to the show method when assinging a node. Fixes #96238 --- editor/plugins/abstract_polygon_2d_editor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/plugins/abstract_polygon_2d_editor.cpp b/editor/plugins/abstract_polygon_2d_editor.cpp index 60d808952e0..804f9c607e7 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(p_object)); + Node *polygon_node = Object::cast_to(p_object); + polygon_editor->edit(polygon_node); + make_visible(polygon_node != nullptr); } bool AbstractPolygon2DEditorPlugin::handles(Object *p_object) const {