Render joint names (#5685)

* render solid skeleton option

Signed-off-by: rhhong <rhhong@amazon.com>

* Fix broken build

Signed-off-by: rhhong <rhhong@amazon.com>

* CR update

Signed-off-by: rhhong <rhhong@amazon.com>

* Render joint names

Signed-off-by: rhhong <rhhong@amazon.com>

* CR update

Signed-off-by: rhhong <rhhong@amazon.com>

* CR update

Signed-off-by: rhhong <rhhong@amazon.com>
This commit is contained in:
Roman
2021-11-18 06:42:41 -08:00
committed by GitHub
parent e2772fca21
commit e52cbd2bb3
7 changed files with 89 additions and 1 deletions
@@ -176,6 +176,20 @@ namespace AZ
return {};
}
ViewportContextPtr ViewportContextManager::GetViewportContextByScene(const Scene* scene) const
{
AZStd::lock_guard lock(m_containerMutex);
for (const auto& viewportData : m_viewportContexts)
{
ViewportContextPtr viewportContext = viewportData.second.context.lock();
if (viewportContext && viewportContext->GetRenderScene().get() == scene)
{
return viewportContext;
}
}
return {};
}
void ViewportContextManager::RenameViewportContext(ViewportContextPtr viewportContext, const Name& newContextName)
{
auto currentAssignedViewportContext = GetViewportContextByName(newContextName);