diff options
-rw-r--r-- | src/core/resources/qloadgltf_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/resources/qloadgltf_p.h b/src/core/resources/qloadgltf_p.h index 39601400a..be7ee0d5f 100644 --- a/src/core/resources/qloadgltf_p.h +++ b/src/core/resources/qloadgltf_p.h @@ -60,11 +60,13 @@ inline QJsonDocument qLoadGLTF(const QByteArray &gltfData) { +#if QT_CONFIG(binaryjson) { QJsonDocument sceneDocument = QJsonDocument::fromBinaryData(gltfData); if (!sceneDocument.isNull()) return sceneDocument; } +#endif { const QCborValue cbor = QCborValue::fromCbor(gltfData); if (cbor.isMap()) |