Fix display of FBX models with only one color for vertices

This commit is contained in:
David Rowe 2020-07-17 20:17:08 +12:00
parent 69aa61174f
commit 335bc7b4db

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()) {