Merge pull request #95034 from KoBeWi/take_a_problem_and_make_it_worse._solved

Close expanded tile editor when inspector updates
This commit is contained in:
Rémi Verschelde 2024-10-04 22:43:02 +02:00
commit fe31ede42d
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -874,6 +874,11 @@ void GenericTilePolygonEditor::_notification(int p_what) {
button_expand->set_pressed_no_signal(false);
}
} break;
case NOTIFICATION_READY: {
get_parent()->connect(SceneStringName(tree_exited), callable_mp(TileSetEditor::get_singleton(), &TileSetEditor::remove_expanded_editor));
} break;
case NOTIFICATION_THEME_CHANGED: {
button_expand->set_icon(get_editor_theme_icon(SNAME("DistractionFree")));
button_create->set_icon(get_editor_theme_icon(SNAME("CurveCreate")));