Skip to content

Commit

Permalink
Merge pull request #545 from ctrlaltdavid/fix/fbx-single-color
Browse files Browse the repository at this point in the history
Fix display of FBX models with only one color for vertices
  • Loading branch information
two-one-five authored Jul 23, 2020
2 parents ce65733 + 335bc7b commit 65d1a88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/fbx/src/FBXSerializer_Mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 65d1a88

Please sign in to comment.