1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 20:32:55 +08:00

Merge pull request #2123 from smoogipoo/sliderbody-rework

Improve vector conditional
This commit is contained in:
Dean Herbert 2018-02-26 16:22:53 +09:00 committed by GitHub
commit 0f32d2ed77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)