osu-framework icon indicating copy to clipboard operation
osu-framework copied to clipboard

Calling Expire before LoadComplete is unsafe

Open peppy opened this issue 5 years ago • 0 comments

Right now, calling Expire before a clock has arrived at a drawable can lead to incorrect lifetimes (due to a lookup on LatestTransformEndTime -> TransformStartTime):

https://github.com/ppy/osu-framework/blob/496219e8473af49417130a361b0dc314722e4250/osu.Framework/Graphics/Transforms/Transformable.cs#L35

If possible, we should remove this requirement to make it a safe call, else it should probably throw an exception.

peppy avatar Feb 24 '20 03:02 peppy