summaryrefslogtreecommitdiffstats
path: root/examples/qt3d
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d')
-rw-r--r--examples/qt3d/materials/TrefoilKnot.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/qt3d/materials/TrefoilKnot.qml b/examples/qt3d/materials/TrefoilKnot.qml
index dc124480b..8dd03ea4e 100644
--- a/examples/qt3d/materials/TrefoilKnot.qml
+++ b/examples/qt3d/materials/TrefoilKnot.qml
@@ -53,7 +53,8 @@ Entity {
Transform {
id: transform
translation: Qt.vector3d(root.x, root.y, root.z)
- rotation: fromEulerAngles(theta, phi, 0)
+ rotationX: theta
+ rotationY: phi
scale: root.scale
}