Merge pull request #96466 from object71/fix-polygon-editor-losing-toolbar-96238

Fix polygon node losing its UV toolbar
This commit is contained in:
Rémi Verschelde 2024-09-13 11:21:44 +02:00
commit 9a5d0be90f
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -748,7 +748,9 @@ AbstractPolygon2DEditor::AbstractPolygon2DEditor(bool p_wip_destructive) {
} }
void AbstractPolygon2DEditorPlugin::edit(Object *p_object) { 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 { bool AbstractPolygon2DEditorPlugin::handles(Object *p_object) const {