summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-12-14 17:11:18 +0100
committerSean Harmer <sean.harmer@kdab.com>2015-12-15 19:26:59 +0000
commit4125d98dfa4abdd6533bb7203b7e36a51dc545aa (patch)
treead7d8fe22de15ddbfd45e5c6ca3719a7ffe8b84a /examples
parentf4520cf447eb7344ffda703ac4d7f354910a4f4a (diff)
Exercise the new rotation properties in materials
Change-Id: I7e5ddf7b2effd676f177081ccc2440433df1bd22 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples')
-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
}