mirror of
https://github.com/ppy/osu
synced 2024-12-12 09:58:22 +00: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;
|
||||
OriginPosition = Body.PathOffset;
|
||||
|
||||
if (DrawSize.X > 0 && DrawSize.Y > 0)
|
||||
if (DrawSize != Vector2.Zero)
|
||||
{
|
||||
var childAnchorPosition = Vector2.Divide(OriginPosition, DrawSize);
|
||||
foreach (var obj in NestedHitObjects)
|
||||
|
Loading…
Reference in New Issue
Block a user