From ba3e89e4b609d19b0607d2cb1cdf13b83f6cd984 Mon Sep 17 00:00:00 2001 From: Sean Harmer Date: Wed, 11 Nov 2015 11:29:15 +0000 Subject: Adapt examples to use no args form of Qt.matrix4x4() Change-Id: If289d74601e2244d4175ba6b1ea3eb95df0bd50b Reviewed-by: Paul Lemire --- examples/qt3d/gltf/Wine.qml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/qt3d/gltf') diff --git a/examples/qt3d/gltf/Wine.qml b/examples/qt3d/gltf/Wine.qml index 7a1506ba5..676cffb77 100644 --- a/examples/qt3d/gltf/Wine.qml +++ b/examples/qt3d/gltf/Wine.qml @@ -49,10 +49,7 @@ Entity { components: [ Transform { matrix: { - var m = Qt.matrix4x4(1, 0, 0, 0, - 0, 1, 0, 0, - 0, 0, 1, 0, - 0, 0, 0, 1); + var m = Qt.matrix4x4(); m.translate(root.position); m.rotate(root.angleX, Qt.vector3d(1, 0, 0)) m.rotate(root.angleY, Qt.vector3d(0, 1, 0)) -- cgit v1.2.3