handling of background node improved
This commit is contained in:
parent
6c391b831d
commit
46e5630f48
@ -369,12 +369,11 @@ QSGNode* QskSkinlet::updateBackgroundNode(
|
||||
return nullptr;
|
||||
|
||||
const auto gradient = control->background();
|
||||
if ( !gradient.isValid() )
|
||||
if ( !gradient.isVisible() )
|
||||
return nullptr;
|
||||
|
||||
auto rectNode = QskSGNode::ensureNode< QskBoxRectangleNode >( node );
|
||||
rectNode->updateFilling( rect, QskBoxShapeMetrics(),
|
||||
QskBoxBorderMetrics(), gradient );
|
||||
rectNode->updateFilling( rect, gradient );
|
||||
|
||||
return rectNode;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user