From d53b5a0bed97d7efb48b04b599cb4d5860f96a7b Mon Sep 17 00:00:00 2001 From: mnaumov Date: Thu, 10 Jun 2021 14:37:02 -0700 Subject: [PATCH] PR feedback --- .../CommonFeatures/Code/Source/Mesh/EditorMeshComponent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gems/AtomLyIntegration/CommonFeatures/Code/Source/Mesh/EditorMeshComponent.cpp b/Gems/AtomLyIntegration/CommonFeatures/Code/Source/Mesh/EditorMeshComponent.cpp index 3c5063a69e..a2f113f1e1 100644 --- a/Gems/AtomLyIntegration/CommonFeatures/Code/Source/Mesh/EditorMeshComponent.cpp +++ b/Gems/AtomLyIntegration/CommonFeatures/Code/Source/Mesh/EditorMeshComponent.cpp @@ -217,13 +217,13 @@ namespace AZ { EditorMeshStatsForLod stats; const auto& meshes = lodAsset->GetMeshes(); - stats.m_meshCount = lodAsset->GetMeshes().size(); + stats.m_meshCount = meshes.size(); for (const auto& mesh : meshes) { stats.m_vertCount += mesh.GetVertexCount(); stats.m_triCount += mesh.GetIndexCount() / 3; } - m_stats.m_meshStatsForLod.emplace_back(stats); + m_stats.m_meshStatsForLod.emplace_back(AZStd::move(stats)); } // Refresh the tree when the model loads to update UI based on the model.