summaryrefslogtreecommitdiffstats
path: root/tools/qgltf/qgltf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qgltf/qgltf.cpp')
-rw-r--r--tools/qgltf/qgltf.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/qgltf/qgltf.cpp b/tools/qgltf/qgltf.cpp
index 3d4c1a420..f879e421f 100644
--- a/tools/qgltf/qgltf.cpp
+++ b/tools/qgltf/qgltf.cpp
@@ -1752,9 +1752,10 @@ static inline void promoteColorsToRGBA(QJsonObject *obj)
const QString key = it.key();
if (key == QStringLiteral("ambient")
|| key == QStringLiteral("diffuse")
- || key == QStringLiteral("specular"))
+ || key == QStringLiteral("specular")) {
arr.append(1);
*it = arr;
+ }
}
++it;
}