Fix #2077 : GLTF segfault using triangle strip

This commit is contained in:
Alexandre Avenel
2018-07-31 23:06:55 +02:00
parent 468549b752
commit ae0f82d5b7
2 changed files with 28 additions and 21 deletions

View File

@@ -740,11 +740,6 @@ void glTFImporter::InternReadFile(const std::string& pFile, aiScene* pScene, IOS
ImportNodes(asset);
// TODO: it does not split the loaded vertices, should it?
//pScene->mFlags |= AI_SCENE_FLAGS_NON_VERBOSE_FORMAT;
MakeVerboseFormatProcess process;
process.Execute(pScene);
if (pScene->mNumMeshes == 0) {
pScene->mFlags |= AI_SCENE_FLAGS_INCOMPLETE;