summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/custom-mesh-qml/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/custom-mesh-qml/main.qml')
-rw-r--r--examples/qt3d/custom-mesh-qml/main.qml11
1 files changed, 2 insertions, 9 deletions
diff --git a/examples/qt3d/custom-mesh-qml/main.qml b/examples/qt3d/custom-mesh-qml/main.qml
index 05b45f793..74272f83a 100644
--- a/examples/qt3d/custom-mesh-qml/main.qml
+++ b/examples/qt3d/custom-mesh-qml/main.qml
@@ -208,15 +208,8 @@ Entity {
Transform {
id: meshTransform
property real userAngle: 0.0
- matrix: {
- var m = Qt.matrix4x4(1, 0, 0, 0,
- 0, 1, 0, 0,
- 0, 0, 1, 0,
- 0, 0, 0, 1);
- m.rotate(userAngle, Qt.vector3d(0, 1, 0));
- m.scale(10);
- return m;
- }
+ scale: 10
+ rotation: fromAxisAndAngle(Qt.vector3d(0, 1, 0), userAngle)
}
QQ2.NumberAnimation {