From cd19b047ab5c1ae4f65f1b67b77c2d52c1ce1852 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Fri, 30 Sep 2022 15:08:19 +0200 Subject: [PATCH] setting an initial material, so that the node can be inserted into the scene grapf without rnning into Qt assertions --- src/nodes/QskShapeNode.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nodes/QskShapeNode.cpp b/src/nodes/QskShapeNode.cpp index 813f8234..fe667ca8 100644 --- a/src/nodes/QskShapeNode.cpp +++ b/src/nodes/QskShapeNode.cpp @@ -116,6 +116,7 @@ QskShapeNode::QskShapeNode() Q_D( QskShapeNode ); setGeometry( &d->geometry ); + setMaterial( new QSGFlatColorMaterial() ); setFlag( QSGNode::OwnsMaterial, true ); }