summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/phong-cubes/CubeEntity.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/phong-cubes/CubeEntity.qml')
-rw-r--r--examples/qt3d/phong-cubes/CubeEntity.qml10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/qt3d/phong-cubes/CubeEntity.qml b/examples/qt3d/phong-cubes/CubeEntity.qml
index 558f53327..2c3939662 100644
--- a/examples/qt3d/phong-cubes/CubeEntity.qml
+++ b/examples/qt3d/phong-cubes/CubeEntity.qml
@@ -60,11 +60,13 @@ Entity {
components: [mesh, material, transform]
- CuboidMesh {
+ GeometryRenderer {
id: mesh
- xExtent: 0.5
- yExtent: xExtent
- zExtent: xExtent
+ view: CuboidMesh {
+ xExtent: 0.5
+ yExtent: xExtent
+ zExtent: xExtent
+ }
}
Transform {