summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/controls
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/controls')
-rw-r--r--examples/qt3d/controls/Logo.qml5
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/qt3d/controls/Logo.qml b/examples/qt3d/controls/Logo.qml
index d4286ca7b..b3f082973 100644
--- a/examples/qt3d/controls/Logo.qml
+++ b/examples/qt3d/controls/Logo.qml
@@ -77,10 +77,7 @@ Entity {
id: logoTransform
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.rotate(rotation_z.value, Qt.vector3d(0, 0, 1));
m.rotate(rotation_y.value, Qt.vector3d(0, 1, 0));
m.rotate(rotation_x.value, Qt.vector3d(1, 0, 0));