mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-15 16:46:03 +02:00
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:
commit
65d1a88a0c
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue