mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 13:22:55 +08:00
Improve vector conditional
This commit is contained in:
parent
b9b5d00096
commit
1218a75b7f
@ -113,7 +113,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
|||||||
Size = Body.Size;
|
Size = Body.Size;
|
||||||
OriginPosition = Body.PathOffset;
|
OriginPosition = Body.PathOffset;
|
||||||
|
|
||||||
if (DrawSize.X > 0 && DrawSize.Y > 0)
|
if (DrawSize != Vector2.Zero)
|
||||||
{
|
{
|
||||||
var childAnchorPosition = Vector2.Divide(OriginPosition, DrawSize);
|
var childAnchorPosition = Vector2.Divide(OriginPosition, DrawSize);
|
||||||
foreach (var obj in NestedHitObjects)
|
foreach (var obj in NestedHitObjects)
|
||||||
|
Loading…
Reference in New Issue
Block a user