setting an initial material, so that the node can be inserted into the

scene grapf without rnning into Qt assertions
This commit is contained in:
Uwe Rathmann 2022-09-30 15:08:19 +02:00
parent 45e59d6c10
commit cd19b047ab

View File

@ -116,6 +116,7 @@ QskShapeNode::QskShapeNode()
Q_D( QskShapeNode );
setGeometry( &d->geometry );
setMaterial( new QSGFlatColorMaterial() );
setFlag( QSGNode::OwnsMaterial, true );
}