diff options
Diffstat (limited to 'examples/qt3d/simple-qml/main.qml')
-rw-r--r-- | examples/qt3d/simple-qml/main.qml | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/qt3d/simple-qml/main.qml b/examples/qt3d/simple-qml/main.qml index 559aec1e8..0ee3ab2a8 100644 --- a/examples/qt3d/simple-qml/main.qml +++ b/examples/qt3d/simple-qml/main.qml @@ -105,10 +105,7 @@ Entity { id: sphereTransform 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); + var m = Qt.matrix4x4(); m.rotate(userAngle, Qt.vector3d(0, 1, 0)); m.translate(Qt.vector3d(20, 0, 0)); return m; |