Use aznumeric_cast in EditorBoxSelect::Display2d

This commit is contained in:
nvsickle
2021-04-29 00:06:37 -07:00
parent 9311dc4cb9
commit cbf5a3f5b1
@@ -87,10 +87,10 @@ namespace AzToolsFramework
debugDisplay.DrawWireQuad2d(
AZ::Vector2(
static_cast<float>(m_boxSelectRegion->x()), static_cast<float>(m_boxSelectRegion->y())) / viewportSize,
aznumeric_cast<float>(m_boxSelectRegion->x()), aznumeric_cast<float>(m_boxSelectRegion->y())) / viewportSize,
AZ::Vector2(
static_cast<float>(m_boxSelectRegion->x()) + static_cast<float>(m_boxSelectRegion->width()),
static_cast<float>(m_boxSelectRegion->y()) + static_cast<float>(m_boxSelectRegion->height())) / viewportSize,
aznumeric_cast<float>(m_boxSelectRegion->x()) + aznumeric_cast<float>(m_boxSelectRegion->width()),
aznumeric_cast<float>(m_boxSelectRegion->y()) + aznumeric_cast<float>(m_boxSelectRegion->height())) / viewportSize,
0.f);
debugDisplay.DepthTestOn();