mirror of
https://github.com/ppy/osu
synced 2024-12-24 15:53:37 +00:00
Fix regression causing storyboard sprites to have incorrect origin support
This commit is contained in:
parent
1b84402b96
commit
4f746792fb
@ -109,6 +109,8 @@ namespace osu.Game.Storyboards.Drawables
|
||||
|
||||
LifetimeStart = sprite.StartTime;
|
||||
LifetimeEnd = sprite.EndTime;
|
||||
|
||||
AutoSizeAxes = Axes.Both;
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
@ -117,7 +119,7 @@ namespace osu.Game.Storyboards.Drawables
|
||||
var drawable = storyboard.CreateSpriteFromResourcePath(Sprite.Path, textureStore);
|
||||
|
||||
if (drawable != null)
|
||||
InternalChild = drawable.With(s => s.Anchor = s.Origin = Anchor.Centre);
|
||||
InternalChild = drawable;
|
||||
|
||||
Sprite.ApplyTransforms(this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user