mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 17:13:06 +08:00
Fix HitObject test case not displaying properly.
This commit is contained in:
parent
83e7e67cc5
commit
87ad44b901
@ -22,7 +22,7 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
|
||||
public TestCaseHitObjects()
|
||||
{
|
||||
var swClock = new StopwatchClock(true) { Rate = 1 };
|
||||
var swClock = new StopwatchClock(true) { Rate = 0.2f };
|
||||
Clock = new FramedClock(swClock);
|
||||
}
|
||||
|
||||
@ -52,8 +52,10 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
Origin = Anchor.Centre,
|
||||
Depth = i,
|
||||
State = ArmedState.Hit,
|
||||
Judgement = new OsuJudgementInfo { Result = HitResult.Hit }
|
||||
};
|
||||
|
||||
|
||||
approachContainer.Add(d.ApproachCircle.CreateProxy());
|
||||
Add(d);
|
||||
}
|
||||
|
@ -47,7 +47,9 @@ namespace osu.Game.Modes.Objects.Drawables
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
Judgement = CreateJudgementInfo();
|
||||
//we may be setting a custom judgement in test cases or what not.
|
||||
if (Judgement == null)
|
||||
Judgement = CreateJudgementInfo();
|
||||
|
||||
//force application of the state that was set before we loaded.
|
||||
UpdateState(State);
|
||||
|
Loading…
Reference in New Issue
Block a user