mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 11:42:54 +08:00
Fix storyboard flipping potentially not having an effect
This commit is contained in:
parent
f150d22eaf
commit
5aca523d35
@ -16,8 +16,35 @@ namespace osu.Game.Storyboards.Drawables
|
||||
{
|
||||
public StoryboardAnimation Animation { get; private set; }
|
||||
|
||||
public bool FlipH { get; set; }
|
||||
public bool FlipV { get; set; }
|
||||
private bool flipH;
|
||||
|
||||
public bool FlipH
|
||||
{
|
||||
get => flipH;
|
||||
set
|
||||
{
|
||||
if (flipH == value)
|
||||
return;
|
||||
|
||||
flipH = value;
|
||||
Invalidate(Invalidation.MiscGeometry);
|
||||
}
|
||||
}
|
||||
|
||||
private bool flipV;
|
||||
|
||||
public bool FlipV
|
||||
{
|
||||
get => flipV;
|
||||
set
|
||||
{
|
||||
if (flipV == value)
|
||||
return;
|
||||
|
||||
flipV = value;
|
||||
Invalidate(Invalidation.MiscGeometry);
|
||||
}
|
||||
}
|
||||
|
||||
public override bool RemoveWhenNotAlive => false;
|
||||
|
||||
|
@ -16,8 +16,35 @@ namespace osu.Game.Storyboards.Drawables
|
||||
{
|
||||
public StoryboardSprite Sprite { get; private set; }
|
||||
|
||||
public bool FlipH { get; set; }
|
||||
public bool FlipV { get; set; }
|
||||
private bool flipH;
|
||||
|
||||
public bool FlipH
|
||||
{
|
||||
get => flipH;
|
||||
set
|
||||
{
|
||||
if (flipH == value)
|
||||
return;
|
||||
|
||||
flipH = value;
|
||||
Invalidate(Invalidation.MiscGeometry);
|
||||
}
|
||||
}
|
||||
|
||||
private bool flipV;
|
||||
|
||||
public bool FlipV
|
||||
{
|
||||
get => flipV;
|
||||
set
|
||||
{
|
||||
if (flipV == value)
|
||||
return;
|
||||
|
||||
flipV = value;
|
||||
Invalidate(Invalidation.MiscGeometry);
|
||||
}
|
||||
}
|
||||
|
||||
public override bool RemoveWhenNotAlive => false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user