1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 20:27:30 +08:00

Fix regressed bank inheriting behaviour on node samples

This commit is contained in:
OliBomby 2023-05-31 16:28:43 +02:00
parent 7a46b7b961
commit b7bc49b1f4

View File

@ -332,7 +332,9 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
if (samples.Any(s => s.Name == sampleName)) if (samples.Any(s => s.Name == sampleName))
return; return;
samples.Add(h.CreateHitSampleInfo(sampleName)); // First try inheriting the sample info from the node samples instead of the samples of the hitobject
var relevantSample = samples.FirstOrDefault(s => s.Name != HitSampleInfo.HIT_NORMAL) ?? samples.FirstOrDefault();
samples.Add(relevantSample?.With(sampleName) ?? h.CreateHitSampleInfo(sampleName));
}); });
} }