summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/materials/HousePlant.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/materials/HousePlant.qml')
-rw-r--r--examples/qt3d/materials/HousePlant.qml7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/qt3d/materials/HousePlant.qml b/examples/qt3d/materials/HousePlant.qml
index 9ed378e6a..c8d4693d3 100644
--- a/examples/qt3d/materials/HousePlant.qml
+++ b/examples/qt3d/materials/HousePlant.qml
@@ -43,15 +43,16 @@ Entity {
property string potShape: "cross"
property string plantType: "bamboo"
- property alias x: pot.x
- property alias y: pot.y
- property alias z: pot.z
+ property real x: 0
+ property real y: 0
+ property real z: 0
property real scale: 1.0
RenderableEntity {
id: pot
source: "assets/houseplants/" + root.potShape + "-pot.obj"
scale: 0.03 * root.scale
+ position: Qt.vector3d(root.x, root.y, root.z)
material: NormalDiffuseMapMaterial {
diffuse: "assets/houseplants/pot.webp"