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:
parent
45e59d6c10
commit
cd19b047ab
@ -116,6 +116,7 @@ QskShapeNode::QskShapeNode()
|
||||
Q_D( QskShapeNode );
|
||||
|
||||
setGeometry( &d->geometry );
|
||||
setMaterial( new QSGFlatColorMaterial() );
|
||||
setFlag( QSGNode::OwnsMaterial, true );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user