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

(cherry picked from commit dabeaa6)
  • Loading branch information
object71 authored and RadiantUwU committed Sep 30, 2024
1 parent 8a18684 commit c79d18c
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 @@ -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 {
Expand Down

0 comments on commit c79d18c

Please sign in to comment.