mirror of
https://github.com/ppy/osu.git
synced 2025-01-31 17:12:56 +08:00
Merge pull request #952 from smoogipooo/fix-invalid-depth
Fix an invalid depth operation.
This commit is contained in:
commit
e91348ff85
@ -1 +1 @@
|
|||||||
Subproject commit eed53d35f999ae08a6d233c046aa333a7623c5f0
|
Subproject commit 97ff3376d1bdac3703d442e62f5ee6a36eb3b73f
|
@ -63,8 +63,12 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
|
|
||||||
X = (value & Anchor.x2) > 0 ? SIZE_RETRACTED.X * shear * 0.5f : 0;
|
X = (value & Anchor.x2) > 0 ? SIZE_RETRACTED.X * shear * 0.5f : 0;
|
||||||
|
|
||||||
|
Remove(c1);
|
||||||
|
Remove(c2);
|
||||||
c1.Depth = (value & Anchor.x2) > 0 ? 0 : 1;
|
c1.Depth = (value & Anchor.x2) > 0 ? 0 : 1;
|
||||||
c2.Depth = (value & Anchor.x2) > 0 ? 1 : 0;
|
c2.Depth = (value & Anchor.x2) > 0 ? 1 : 0;
|
||||||
|
Add(c1);
|
||||||
|
Add(c2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user