Fix FBX vertex colors not being read correctly

This commit is contained in:
Ryan Huffman 2018-04-11 16:48:02 -07:00
parent 5c26166bd6
commit 5bf894d1f7

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;
}