summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/loader-qml/SphereEntity.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/loader-qml/SphereEntity.qml')
-rw-r--r--examples/qt3d/loader-qml/SphereEntity.qml10
1 files changed, 3 insertions, 7 deletions
diff --git a/examples/qt3d/loader-qml/SphereEntity.qml b/examples/qt3d/loader-qml/SphereEntity.qml
index 9bad4c3a6..56be1eb07 100644
--- a/examples/qt3d/loader-qml/SphereEntity.qml
+++ b/examples/qt3d/loader-qml/SphereEntity.qml
@@ -34,9 +34,9 @@
**
****************************************************************************/
+import QtQuick 2.4 as QQ2
import Qt3D.Core 2.0
import Qt3D.Render 2.0
-import QtQuick 2.4 as QQ2
Entity {
components: [ mesh, material, transform ]
@@ -48,11 +48,7 @@ Entity {
Transform {
id: transform
-
- Scale {
- id: _scale
- scale: 3
- }
+ scale: 3
}
QQ2.ColorAnimation {
@@ -66,7 +62,7 @@ Entity {
}
QQ2.NumberAnimation {
- target: _scale
+ target: transform
property: "scale"
duration: 1500
loops: QQ2.Animation.Infinite