mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-06 06:56:36 +02:00
Fix display of FBX models with only one color for vertices
This commit is contained in:
parent
69aa61174f
commit
335bc7b4db
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;
|
glm::vec4 color;
|
||||||
bool hasColors = (data.colors.size() > 1);
|
bool hasColors = (data.colors.size() > 0);
|
||||||
if (hasColors) {
|
if (hasColors) {
|
||||||
int colorIndex = data.colorsByVertex ? vertexIndex : index;
|
int colorIndex = data.colorsByVertex ? vertexIndex : index;
|
||||||
if (data.colorIndices.isEmpty()) {
|
if (data.colorIndices.isEmpty()) {
|
||||||
|
|
Loading…
Reference in a new issue