Fixed range-loop-analysis warninig reported as error on mac/ios (#7511)

Signed-off-by: moraaar <moraaar@amazon.com>
monroegm-disable-blank-issue-2
moraaar 4 years ago committed by GitHub
parent 3f32669883
commit b2206be14d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -153,7 +153,7 @@ namespace AZ::SceneAPI::Behaviors
// all mesh data nodes left in the meshIndexContainer do not have a matching TransformData node // all mesh data nodes left in the meshIndexContainer do not have a matching TransformData node
// since the nodes have an identity transform, so map the MeshData index with an Invalid mesh index to // since the nodes have an identity transform, so map the MeshData index with an Invalid mesh index to
// indicate the transform should not be set to a default value // indicate the transform should not be set to a default value
for( const auto meshIndex : meshIndexContainer) for( const auto& meshIndex : meshIndexContainer)
{ {
MeshTransformPair pair{ meshIndex, Containers::SceneGraph::NodeIndex{} }; MeshTransformPair pair{ meshIndex, Containers::SceneGraph::NodeIndex{} };
meshTransformMap.emplace(MeshTransformEntry{ graph.GetNodeParent(meshIndex), AZStd::move(pair) }); meshTransformMap.emplace(MeshTransformEntry{ graph.GetNodeParent(meshIndex), AZStd::move(pair) });

Loading…
Cancel
Save