mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:42:54 +08:00
Clone control points when copying to HitObject
s
This commit is contained in:
parent
34f875187c
commit
714f55b6bc
@ -174,7 +174,6 @@ namespace osu.Game.Rulesets.Osu.Objects
|
|||||||
StartTime = e.Time,
|
StartTime = e.Time,
|
||||||
Position = Position,
|
Position = Position,
|
||||||
StackHeight = StackHeight,
|
StackHeight = StackHeight,
|
||||||
SampleControlPoint = SampleControlPoint,
|
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -108,13 +108,13 @@ namespace osu.Game.Rulesets.Objects
|
|||||||
var legacyInfo = controlPointInfo as LegacyControlPointInfo;
|
var legacyInfo = controlPointInfo as LegacyControlPointInfo;
|
||||||
|
|
||||||
if (legacyInfo != null)
|
if (legacyInfo != null)
|
||||||
DifficultyControlPoint = legacyInfo.DifficultyPointAt(StartTime);
|
DifficultyControlPoint = (DifficultyControlPoint)legacyInfo.DifficultyPointAt(StartTime).DeepClone();
|
||||||
|
|
||||||
ApplyDefaultsToSelf(controlPointInfo, difficulty);
|
ApplyDefaultsToSelf(controlPointInfo, difficulty);
|
||||||
|
|
||||||
// This is done here after ApplyDefaultsToSelf as we may require custom defaults to be applied to have an accurate end time.
|
// This is done here after ApplyDefaultsToSelf as we may require custom defaults to be applied to have an accurate end time.
|
||||||
if (legacyInfo != null)
|
if (legacyInfo != null)
|
||||||
SampleControlPoint = legacyInfo.SamplePointAt(this.GetEndTime() + control_point_leniency);
|
SampleControlPoint = (SampleControlPoint)legacyInfo.SamplePointAt(this.GetEndTime() + control_point_leniency).DeepClone();
|
||||||
|
|
||||||
nestedHitObjects.Clear();
|
nestedHitObjects.Clear();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user