Merge pull request #708 from aws-lumberyard-dev/Atom/breja/FixDefaultDebugDrawId

Fix AzFramework::g_defaultSceneEntityDebugDisplayId not working for the AtomDebugDisplayViewportInstance
This commit is contained in:
rgba16f
2021-05-17 10:26:40 -05:00
committed by GitHub
2 changed files with 23 additions and 24 deletions
@@ -452,6 +452,15 @@ void EditorViewportWidget::Update()
return;
}
static bool sentOnWindowCreated = false;
if (!sentOnWindowCreated && windowHandle()->isActive())
{
sentOnWindowCreated = true;
AzFramework::WindowSystemNotificationBus::Broadcast(
&AzFramework::WindowSystemNotificationBus::Handler::OnWindowCreated,
reinterpret_cast<AzFramework::NativeWindowHandle>(winId()));
}
m_updatingCameraPosition = true;
if (!ed_useNewCameraSystem)
{