summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/wireframe/TrefoilKnot.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/wireframe/TrefoilKnot.qml')
-rw-r--r--examples/qt3d/wireframe/TrefoilKnot.qml5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/qt3d/wireframe/TrefoilKnot.qml b/examples/qt3d/wireframe/TrefoilKnot.qml
index 4d51e067b..dbdae18dc 100644
--- a/examples/qt3d/wireframe/TrefoilKnot.qml
+++ b/examples/qt3d/wireframe/TrefoilKnot.qml
@@ -53,10 +53,7 @@ Entity {
Transform {
id: 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(Qt.vector3d(root.x, root.y, root.z));
m.rotate(root.phi, Qt.vector3d(0, 1, 0));
m.rotate(root.theta, Qt.vector3d(1, 0, 0));