Skip to content

Commit d2a20ee

Browse files
author
Par Winzell
committed
Fixes for Linux/GCC.
Between Linux, Darwin and Windows keeping me honest, I am slowly learning C++.
1 parent 5eb3779 commit d2a20ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Raw2Gltf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ ModelData *Raw2Gltf(
537537
int triangleCount = surfaceModel.GetTriangleCount();
538538

539539
// initialize Draco mesh with vertex index information
540-
auto dracoMesh { std::make_shared<draco::Mesh>() };
540+
auto dracoMesh(std::make_shared<draco::Mesh>());
541541
dracoMesh->SetNumFaces(static_cast<size_t>(triangleCount));
542542

543543
for (uint32_t ii = 0; ii < triangleCount; ii++) {

src/glTF/PrimitiveData.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ void PrimitiveData::NoteDracoBuffer(const BufferViewData &data)
4141

4242
void PrimitiveData::AddTarget(const AccessorData *positions, const AccessorData *normals, const AccessorData *tangents)
4343
{
44-
targetAccessors.push_back({
44+
targetAccessors.push_back(std::make_tuple(
4545
positions->ix,
4646
normals ? normals->ix : -1,
4747
tangents ? tangents ->ix : -1
48-
});
48+
));
4949
}
5050

5151
void to_json(json &j, const PrimitiveData &d) {

0 commit comments

Comments
 (0)