1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-19 16:42:55 +08:00

Remove unsafe access to Composer.HitObjects

This commit is contained in:
Dean Herbert 2021-05-03 14:28:35 +09:00
parent d8d2c731ee
commit 8c9cfb6301

View File

@ -34,13 +34,6 @@ namespace osu.Game.Screens.Edit.Compose.Components
[BackgroundDependencyLoader]
private void load()
{
// For non-pooled rulesets, hitobjects are already present in the playfield which allows the blueprints to be loaded in the async context.
if (Composer != null)
{
foreach (var obj in Composer.HitObjects)
AddBlueprintFor(obj.HitObject);
}
selectedHitObjects.BindTo(Beatmap.SelectedHitObjects);
selectedHitObjects.CollectionChanged += (selectedObjects, args) =>
{