Fix regression causing storyboard sprites to have incorrect origin support

This commit is contained in:
Dean Herbert 2020-10-23 15:46:24 +09:00
parent 1b84402b96
commit 4f746792fb

View File

@ -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);
}