Fix switching cameras rapidly in the Editor accidentally copying camera positions

Signed-off-by: nvsickle <nvsickle@amazon.com>
This commit is contained in:
nvsickle
2021-06-28 15:43:37 -07:00
parent c7d000e14b
commit 4874a48c18
3 changed files with 17 additions and 22 deletions
@@ -101,9 +101,9 @@ namespace Camera
OnTransformChanged(localTransform, worldTransform);
// Push the Atom camera after we make sure we're up-to-date with our component's transform to ensure the viewport reads the correct state
UpdateCamera();
atomViewportRequests->PushView(contextName, m_atomCamera);
AZ::RPI::ViewportContextNotificationBus::Handler::BusConnect(contextName);
UpdateCamera();
}
}