Merge pull request #12872 from huffman/fix/vertex-colors-fbx

Fix FBX vertex colors not being read correctly
This commit is contained in:
John Conklin II 2018-05-02 10:22:01 -07:00 committed by GitHub
commit 83d370f1af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -249,7 +249,7 @@ ExtractedMesh FBXReader::extractMesh(const FBXNode& object, unsigned int& meshIn
indexToDirect = true;
}
}
if (indexToDirect && data.normalIndices.isEmpty()) {
if (indexToDirect && data.colorIndices.isEmpty()) {
// hack to work around wacky Makehuman exports
data.colorsByVertex = true;
}