Skip to content

Commit

Permalink
Fix display of FBX models with only one color for vertices
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltdavid committed Jul 17, 2020
1 parent 69aa611 commit 335bc7b
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 335bc7b

Please sign in to comment.