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 dabeaa6a4b)
This commit is contained in:
Hristo Iliev 2024-09-02 15:00:57 +03:00 committed by Rémi Verschelde
parent 51c86eb085
commit f4b71b5325
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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 {