Skip to content

Commit

Permalink
Fixes for Linux/GCC.
Browse files Browse the repository at this point in the history
Between Linux, Darwin and Windows keeping me honest, I am slowly learning C++.
  • Loading branch information
Par Winzell committed Nov 6, 2017
1 parent 5eb3779 commit d2a20ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Raw2Gltf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ ModelData *Raw2Gltf(
int triangleCount = surfaceModel.GetTriangleCount();

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

for (uint32_t ii = 0; ii < triangleCount; ii++) {
Expand Down
4 changes: 2 additions & 2 deletions src/glTF/PrimitiveData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d2a20ee

Please sign in to comment.