summaryrefslogtreecommitdiffstats
path: root/src/plugins/sceneparsers
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2018-04-25 10:05:30 +0200
committerJani Heikkinen <jani.heikkinen@qt.io>2018-04-27 04:24:01 +0000
commitdcc7f1548425c2a8cabad3282b98939f05cc2513 (patch)
treeed27602a4cdd3a0e3eb642f61e9f9ba47ba822ab /src/plugins/sceneparsers
parentee47bb003b7f3e104993c46c7d68a44fc466925b (diff)
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>
Diffstat (limited to 'src/plugins/sceneparsers')
-rw-r--r--src/plugins/sceneparsers/gltf/gltfimporter.cpp1
1 files changed, 1 insertions, 0 deletions
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);