mirror of
https://github.com/ppy/osu.git
synced 2024-12-17 05:22:54 +08:00
Fix regressed bank inheriting behaviour on node samples
This commit is contained in:
parent
7a46b7b961
commit
b7bc49b1f4
@ -332,7 +332,9 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
||||
if (samples.Any(s => s.Name == sampleName))
|
||||
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));
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user