Assimp master head fixes for failure to compile (#5899)
* Fix unknown pragma error on msys2 mingw * Fix missing assignment operator on msys2 mingw Default is omitted by compiler because custom copy constructor * Fix redefinition of _1 and _2 error on msys2 mingw fix is converting it to lambda as clang is claiming that is preferred * Fix strncpy warnings about truncation * Fix missing assignment operator error on clang * Update glTFImporter.cpp * Update glTF2Importer.cpp --------- Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com>
This commit is contained in:
@@ -658,6 +658,7 @@ void glTFImporter::ImportEmbeddedTextures(glTF::Asset &r) {
|
||||
if (strncmp(ext, "jpeg", 4) == 0) {
|
||||
ext = "jpg";
|
||||
}
|
||||
|
||||
tex->achFormatHint[3] = '\0';
|
||||
size_t len = strlen(ext);
|
||||
if (len > 3) len = 3;
|
||||
|
||||
@@ -83,6 +83,7 @@ struct Maybe {
|
||||
|
||||
Maybe &operator&() = delete;
|
||||
Maybe(const Maybe &) = delete;
|
||||
Maybe &operator=(const Maybe &) = default;
|
||||
|
||||
private:
|
||||
T _val;
|
||||
|
||||
Reference in New Issue
Block a user