Close expanded tile editor when inspector updates

This commit is contained in:
kobewi 2024-08-01 20:30:16 +02:00
parent 3978628c6c
commit e2c03469fb
1 changed files with 5 additions and 0 deletions

View File

@ -859,6 +859,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")));