mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08: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