- Removed unnecessary null-conditional operator

- Removed unnecessary Float2 allocation
This commit is contained in:
Nils Hausfeld
2023-09-23 19:14:06 +02:00
parent 963300c2cb
commit b6ad252305
2 changed files with 2 additions and 2 deletions

View File

@@ -634,7 +634,7 @@ namespace FlaxEngine.GUI
case NavDirection.Left: return new Float2(0, size.Y * 0.5f);
case NavDirection.Right: return new Float2(size.X, size.Y * 0.5f);
case NavDirection.Next: return Float2.Zero;
case NavDirection.Previous: return new Float2(Size.X, Size.Y);
case NavDirection.Previous: return size;
default: return size * 0.5f;
}
}