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;
|
LifetimeStart = sprite.StartTime;
|
||||||
LifetimeEnd = sprite.EndTime;
|
LifetimeEnd = sprite.EndTime;
|
||||||
|
|
||||||
|
AutoSizeAxes = Axes.Both;
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
@ -117,7 +119,7 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
var drawable = storyboard.CreateSpriteFromResourcePath(Sprite.Path, textureStore);
|
var drawable = storyboard.CreateSpriteFromResourcePath(Sprite.Path, textureStore);
|
||||||
|
|
||||||
if (drawable != null)
|
if (drawable != null)
|
||||||
InternalChild = drawable.With(s => s.Anchor = s.Origin = Anchor.Centre);
|
InternalChild = drawable;
|
||||||
|
|
||||||
Sprite.ApplyTransforms(this);
|
Sprite.ApplyTransforms(this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user