Skip to content

Commit

Permalink
Adjust includes: C# MSVC fails to compile this file as it doesn't kno…
Browse files Browse the repository at this point in the history
…w "string"
  • Loading branch information
jmarrec committed Nov 7, 2024
1 parent cab6ef6 commit c666655
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gltf/GltfMaterialData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <tiny_gltf.h>

#include <map>
#include <array>
#include <string>
#include <string_view>
#include <iostream>
Expand Down
4 changes: 2 additions & 2 deletions src/gltf/GltfMaterialData.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include "GltfAPI.hpp"

#include <array>
#include <string>
#include <string_view>
#include <vector>

Expand Down Expand Up @@ -36,7 +36,7 @@ namespace gltf {

/** Standard constructor */
constexpr GltfMaterialData(std::string_view materialName, int r, int g, int b, double a, bool isDoubleSided = false)
: m_materialName(materialName), m_r(r), m_g(g), m_b(b), m_a(a), m_isDoubleSided(isDoubleSided){};
: m_materialName(materialName), m_r(r), m_g(g), m_b(b), m_a(a), m_isDoubleSided(isDoubleSided) {};

static std::vector<GltfMaterialData> buildMaterials(const model::Model& model);
//@}
Expand Down

0 comments on commit c666655

Please sign in to comment.