1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 04:13:00 +08:00

update nodesamples on placement

This commit is contained in:
OliBomby 2024-07-04 00:39:12 +02:00
parent 5c2555588d
commit 8dd04b6e9a

View File

@ -163,6 +163,15 @@ namespace osu.Game.Rulesets.Edit
if (lastHitNormal != null)
HitObject.Samples[0] = lastHitNormal;
}
if (HitObject is IHasRepeats hasRepeats)
{
// Make sure all the node samples are identical to the hit object's samples
for (int i = 0; i < hasRepeats.NodeSamples.Count; i++)
{
hasRepeats.NodeSamples[i] = HitObject.Samples.Select(o => o.With()).ToList();
}
}
}
/// <summary>