mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Improve vector conditional
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user