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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user