diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-04-25 10:05:30 +0200 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2018-04-27 04:24:01 +0000 |
commit | dcc7f1548425c2a8cabad3282b98939f05cc2513 (patch) | |
tree | ed27602a4cdd3a0e3eb642f61e9f9ba47ba822ab | |
parent | ee47bb003b7f3e104993c46c7d68a44fc466925b (diff) | |
download | qt3d-dcc7f1548425c2a8cabad3282b98939f05cc2513.tar.gz |
gltf sceneloader: request mirrored=false for textures
The default of mirrored=true is unlikely to be the right thing to do
here.
Task-number: QTBUG-54881
Change-Id: I484927be984d69fdb75713401e0be1135831f8d1
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Tuukka Turunen <tuukka.turunen@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
-rw-r--r-- | dist/changes-5.11.0 | 2 | ||||
-rw-r--r-- | src/plugins/sceneparsers/gltf/gltfimporter.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/dist/changes-5.11.0 b/dist/changes-5.11.0 index a2b58e9b9..2a6a29c2d 100644 --- a/dist/changes-5.11.0 +++ b/dist/changes-5.11.0 @@ -25,4 +25,6 @@ information about a particular change. [QTBUG-66581] Add support for mapping fragment shader output variables names to color numbers / attachment points - Updated internal ASSIMP to 4.1 + - The glTF SceneLoader backend no longer mirrors texture images by + default. - Numerous minor bug fixes and performance improvements diff --git a/src/plugins/sceneparsers/gltf/gltfimporter.cpp b/src/plugins/sceneparsers/gltf/gltfimporter.cpp index 9b8057334..333a6b55b 100644 --- a/src/plugins/sceneparsers/gltf/gltfimporter.cpp +++ b/src/plugins/sceneparsers/gltf/gltfimporter.cpp @@ -1549,6 +1549,7 @@ void GLTFImporter::processJSONTexture(const QString &id, const QJsonObject &json } QTextureImage *texImage = new QTextureImage(tex); + texImage->setMirrored(false); texImage->setSource(QUrl::fromLocalFile(imagIt.value())); tex->addTextureImage(texImage); |