From 5bf4f93fcb8ff16aeadf55644be351c9989ab5b2 Mon Sep 17 00:00:00 2001 From: Mike Krus Date: Tue, 11 Feb 2020 14:14:30 +0000 Subject: Make default geometries views In Extras, make QTorusMesh and others a QGeometryView rather than a QGeometryRenderer. Requires changes to scene graphs here and there but going forward there simple shapes could be used as proxies for picking or collision detection, etc. Change-Id: Id488e064080dfd303e448aba11e6b242236b81d4 Reviewed-by: Paul Lemire --- tests/manual/animation-keyframe-programmatic/main.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/manual/animation-keyframe-programmatic') diff --git a/tests/manual/animation-keyframe-programmatic/main.qml b/tests/manual/animation-keyframe-programmatic/main.qml index c34e44d51..8c9d3d3f7 100644 --- a/tests/manual/animation-keyframe-programmatic/main.qml +++ b/tests/manual/animation-keyframe-programmatic/main.qml @@ -66,7 +66,8 @@ DefaultSceneEntity { onTranslationChanged: console.log("t = " + translation) }, - CuboidMesh { + GeometryRenderer { + view: CuboidMesh { } }, PhongMaterial { id: cubeMaterial -- cgit v1.2.3