Handle non-default viewport context
Co-authored-by: Nicholas Van Sickle <NVShacker@gmail.com> Signed-off-by: Yuriy Toporovskyy <toporovskyy.y@gmail.com>
This commit is contained in:
committed by
Yuriy Toporovskyy
parent
590de17343
commit
62214567c1
@@ -2382,7 +2382,10 @@ void EditorViewportWidget::SetDefaultCamera()
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
AZ::RPI::ViewPtr EditorViewportWidget::GetCurrentAtomView() const
|
||||
{
|
||||
auto atomViewportRequests = AZ::Interface<AZ::RPI::ViewportContextRequestsInterface>::Get();
|
||||
if (m_renderViewport && m_renderViewport->GetViewportContext())
|
||||
{
|
||||
return m_viewportContext->GetDefaultView();
|
||||
}
|
||||
if (atomViewportRequests)
|
||||
{
|
||||
const AZ::Name contextName = atomViewportRequests->GetDefaultViewportContextName();
|
||||
|
||||
Reference in New Issue
Block a user