Fix RenderViewportWidget::ViewportWorldToScreen, which fixes box selection

This commit is contained in:
nvsickle
2021-04-28 17:42:43 -07:00
parent a90793cb94
commit 9311dc4cb9
@@ -416,9 +416,7 @@ namespace AtomToolsFramework
}
AzFramework::ScreenPoint position = AzFramework::WorldToScreen(
worldPosition,
currentView->GetViewToWorldMatrix(),
currentView->GetViewToClipMatrix(),
AZ::Vector2{aznumeric_cast<float>(width()), aznumeric_cast<float>(height())}
GetCameraState()
);
return {position.m_x, position.m_y};
}