Merge pull request #545 from ctrlaltdavid/fix/fbx-single-color

Fix display of FBX models with only one color for vertices
This commit is contained in:
kasenvr 2020-07-23 17:27:12 -04:00 committed by GitHub
commit 65d1a88a0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,7 +127,7 @@ void appendIndex(MeshData& data, QVector<int>& indices, int index, bool deduplic
glm::vec4 color;
bool hasColors = (data.colors.size() > 1);
bool hasColors = (data.colors.size() > 0);
if (hasColors) {
int colorIndex = data.colorsByVertex ? vertexIndex : index;
if (data.colorIndices.isEmpty()) {