Skip to content

Commit

Permalink
Fix polygon node losing its UV toolbar by adding a call to the show m…
Browse files Browse the repository at this point in the history
…ethod when assinging a node.

Fixes godotengine#96238
  • Loading branch information
object71 committed Sep 2, 2024
1 parent 61598c5 commit dabeaa6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editor/plugins/abstract_polygon_2d_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dabeaa6

Please sign in to comment.