Skip to content

Commit

Permalink
Don't call Reset() from within TestCaseTaikoHitObjects.
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Apr 1, 2017
1 parent 782c6bf commit 24b9330
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion osu.Desktop.VisualTests/Tests/TestCaseTaikoHitObjects.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE

using System;
using System.Linq;
using OpenTK;
using OpenTK.Graphics;
using osu.Framework.Graphics.Containers;
Expand All @@ -22,7 +24,7 @@ public override void Reset()
AddToggleStep("Kiai", b =>
{
kiai = !kiai;
Reset();
updateKiaiState();
});

Add(new CirclePiece
Expand Down Expand Up @@ -102,6 +104,12 @@ public override void Reset()
});
}

private void updateKiaiState()
{
foreach (var c in Children.OfType<CirclePiece>())
c.KiaiMode = kiai;
}

private abstract class BaseCircle : Container
{
protected readonly CirclePiece Piece;
Expand Down

0 comments on commit 24b9330

Please sign in to comment.