A bug when importing multiple gltf files

meshOffsets are not cleared when importing multiple gltf files
pull/3009/head
Inho Lee 2020-02-14 08:41:55 +01:00
parent d5b7ecd2ec
commit d04df3e7c5
2 changed files with 2 additions and 0 deletions

View File

@ -222,6 +222,7 @@ void glTFImporter::ImportMeshes(glTF::Asset& r)
std::vector<aiMesh*> meshes;
unsigned int k = 0;
meshOffsets.clear();
for (unsigned int m = 0; m < r.meshes.Size(); ++m) {
Mesh& mesh = r.meshes[m];

View File

@ -335,6 +335,7 @@ void glTF2Importer::ImportMeshes(glTF2::Asset &r) {
std::vector<aiMesh *> meshes;
unsigned int k = 0;
meshOffsets.clear();
for (unsigned int m = 0; m < r.meshes.Size(); ++m) {
Mesh &mesh = r.meshes[m];