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:
commit
0f32d2ed77
@ -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