QskBoxFillNode fixed - updating the material first.
This commit is contained in:
parent
386ddf72d1
commit
ada3be71e0
@ -168,7 +168,9 @@ QSGNode* GradientView::updatePaintNode(
|
||||
case BoxRectangle:
|
||||
{
|
||||
QskBoxShapeMetrics shape;
|
||||
#if 0
|
||||
shape.setRadius( 80 );
|
||||
#endif
|
||||
|
||||
if ( !QskBoxRenderer::isGradientSupported( shape, m_gradient ) )
|
||||
{
|
||||
|
@ -71,15 +71,6 @@ void QskBoxFillNode::updateNode(
|
||||
d->gradientHash = gradientHash;
|
||||
d->rect = rect;
|
||||
|
||||
if ( dirtyMetrics )
|
||||
{
|
||||
QskBoxRenderer::renderFillGeometry(
|
||||
rect, shapeMetrics, borderMetrics, *geometry() );
|
||||
|
||||
markDirty( QSGNode::DirtyGeometry );
|
||||
geometry()->markVertexDataDirty();
|
||||
}
|
||||
|
||||
if ( gradient.isMonochrome() )
|
||||
{
|
||||
if ( dirtyColors )
|
||||
@ -92,4 +83,13 @@ void QskBoxFillNode::updateNode(
|
||||
if ( dirtyColors || dirtyMetrics )
|
||||
setColoring( rect, gradient.effectiveGradient() );
|
||||
}
|
||||
|
||||
if ( dirtyMetrics )
|
||||
{
|
||||
QskBoxRenderer::renderFillGeometry(
|
||||
rect, shapeMetrics, borderMetrics, *geometry() );
|
||||
|
||||
markDirty( QSGNode::DirtyGeometry );
|
||||
geometry()->markVertexDataDirty();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user