mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
common Scene: Fix translucent composition condition
If a scene has another scene as a child and the number of children is 1, the composition of the child does not work. Therefore, fix that composition works as long as the number of children is not 0.
This commit is contained in:
parent
795121fa67
commit
6db7f85ffb
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ struct Scene::Impl
|
|||
Compositor* cmp = nullptr;
|
||||
|
||||
//Half translucent. This condition requires intermediate composition.
|
||||
if ((opacity < 255 && opacity > 0) && (paints.count > 1)) {
|
||||
if ((opacity < 255 && opacity > 0) && (paints.count > 0)) {
|
||||
uint32_t x, y, w, h;
|
||||
if (!bounds(renderer, &x, &y, &w, &h)) return false;
|
||||
cmp = renderer.target(x, y, w, h);
|
||||
|
|
Loading…
Add table
Reference in a new issue