summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/custom-mesh-cpp/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/custom-mesh-cpp/main.cpp')
-rw-r--r--examples/qt3d/custom-mesh-cpp/main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/qt3d/custom-mesh-cpp/main.cpp b/examples/qt3d/custom-mesh-cpp/main.cpp
index 61be657a4..ed94f96a5 100644
--- a/examples/qt3d/custom-mesh-cpp/main.cpp
+++ b/examples/qt3d/custom-mesh-cpp/main.cpp
@@ -104,9 +104,7 @@ int main(int argc, char* argv[])
// Transform
Qt3DCore::QTransform *transform = new Qt3DCore::QTransform;
- Qt3DCore::QScaleTransform *scaleTransform = new Qt3DCore::QScaleTransform;
- scaleTransform->setScale(8.0f);
- transform->addTransform(scaleTransform);
+ transform->setScale(8.0f);
// Custom Mesh (TetraHedron)
Qt3DRender::QGeometryRenderer *customMeshRenderer = new Qt3DRender::QGeometryRenderer;