diff --git a/src/Raw2Gltf.cpp b/src/Raw2Gltf.cpp index 3aafe3cc..2c064663 100644 --- a/src/Raw2Gltf.cpp +++ b/src/Raw2Gltf.cpp @@ -537,7 +537,7 @@ ModelData *Raw2Gltf( int triangleCount = surfaceModel.GetTriangleCount(); // initialize Draco mesh with vertex index information - auto dracoMesh { std::make_shared() }; + auto dracoMesh(std::make_shared()); dracoMesh->SetNumFaces(static_cast(triangleCount)); for (uint32_t ii = 0; ii < triangleCount; ii++) { diff --git a/src/glTF/PrimitiveData.cpp b/src/glTF/PrimitiveData.cpp index ab39eab6..54c504aa 100644 --- a/src/glTF/PrimitiveData.cpp +++ b/src/glTF/PrimitiveData.cpp @@ -41,11 +41,11 @@ void PrimitiveData::NoteDracoBuffer(const BufferViewData &data) void PrimitiveData::AddTarget(const AccessorData *positions, const AccessorData *normals, const AccessorData *tangents) { - targetAccessors.push_back({ + targetAccessors.push_back(std::make_tuple( positions->ix, normals ? normals->ix : -1, tangents ? tangents ->ix : -1 - }); + )); } void to_json(json &j, const PrimitiveData &d) {