Import/export of embedded texture names for the glTF/glTF2 format

This commit is contained in:
Loïc
2020-01-29 14:04:41 +01:00
parent 26179cd4d2
commit 194d31002d
4 changed files with 6 additions and 0 deletions
+1
View File
@@ -680,6 +680,7 @@ void glTFImporter::ImportEmbeddedTextures(glTF::Asset& r)
size_t length = img.GetDataLength();
void* data = img.StealData();
tex->mFilename = img.name;
tex->mWidth = static_cast<unsigned int>(length);
tex->mHeight = 0;
tex->pcData = reinterpret_cast<aiTexel*>(data);