Avoid more sources of camera update re-entrancy that can lead to stack overflow (#1136)
This commit is contained in:
committed by
GitHub
parent
34449e2fc9
commit
30eedc1c55
@@ -387,6 +387,11 @@ namespace Camera
|
||||
|
||||
void CameraComponentController::OnTransformChanged([[maybe_unused]] const AZ::Transform& local, const AZ::Transform& world)
|
||||
{
|
||||
if (m_updatingTransformFromEntity)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_view)
|
||||
{
|
||||
CCamera& camera = m_view->GetCamera();
|
||||
|
||||
Reference in New Issue
Block a user