diff --git a/graphics/src/ColladaLoader.cc b/graphics/src/ColladaLoader.cc index ba896b10..51fa05e3 100644 --- a/graphics/src/ColladaLoader.cc +++ b/graphics/src/ColladaLoader.cc @@ -1561,7 +1561,8 @@ void ColladaLoader::Implementation::LoadPositions(const std::string &_id, auto values = toDoubleVec(valueStr, totCount); gz::math::Vector3d vec; - std::shared_ptr prev_vec = std::make_shared(gz::math::Vector3d::Zero); + std::shared_ptr prev_vec = + std::make_shared(gz::math::Vector3d::Zero); if (!_values) _values = std::make_shared>(); if (!_duplicates) @@ -1726,7 +1727,8 @@ void ColladaLoader::Implementation::LoadNormals(const std::string &_id, auto values = toDoubleVec(valueStr, totCount); gz::math::Vector3d vec; - std::shared_ptr prev_vec = std::make_shared(gz::math::Vector3d::Zero); + std::shared_ptr prev_vec = + std::make_shared(gz::math::Vector3d::Zero); if (!_values) _values = std::make_shared>(); if (!_duplicates) @@ -1914,7 +1916,8 @@ void ColladaLoader::Implementation::LoadTexCoords(const std::string &_id, auto values = toDoubleVec(valueStr, totCount); gz::math::Vector2d vec; - std::shared_ptr prev_vec = std::make_shared(gz::math::Vector2d::Zero); + std::shared_ptr prev_vec = + std::make_shared(gz::math::Vector2d::Zero); if (!_values) _values = std::make_shared>(); if (!_duplicates) @@ -2293,7 +2296,7 @@ void ColladaLoader::Implementation::LoadPolylist( // vertexIndexMap is a map of collada vertex index to Gazebo submesh vertex // indices, used for identifying vertices that can be shared. - std::map > vertexIndexMap; + std::unordered_map> vertexIndexMap; unsigned int *values = new unsigned int[inputSize]; memset(values, 0, inputSize); @@ -2678,7 +2681,7 @@ void ColladaLoader::Implementation::LoadTriangles( // vertexIndexMap is a map of collada vertex index to Gazebo submesh vertex // indices, used for identifying vertices that can be shared. - std::map > vertexIndexMap; + std::unordered_map> vertexIndexMap; std::vector values(offsetSize); std::vector strs = split(pStr, " \t\r\n");