1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 00:20:49 +08:00

Fix storyboard videos not displaying

Regressed with 102085668f because the
stupid magic alpha transform addition was also implicitly changing the
value of `IsDrawable` from false to true because that property checks
for presence of any commands.

Apparently past me, in his infinite wisdom, did not decide it pertinent
to test that change against, you know, *a beatmap with a storyboard*.
Great job, past me, good show all around.
This commit is contained in:
Bartłomiej Dach
2025-04-18 14:23:43 +02:00
Unverified
parent 20b2cc8251
commit 2761ee005d
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ namespace osu.Game.Storyboards
private readonly List<StoryboardTriggerGroup> triggerGroups = new List<StoryboardTriggerGroup>();
public string Path { get; }
public bool IsDrawable => HasCommands;
public virtual bool IsDrawable => HasCommands;
public Anchor Origin;
public Vector2 InitialPosition;
+2
View File
@@ -19,6 +19,8 @@ namespace osu.Game.Storyboards
public override double StartTime { get; }
public override bool IsDrawable => true;
public override Drawable CreateDrawable() => new DrawableStoryboardVideo(this);
}
}