actor: Check for mapped children in the default get_paint_volume()
Unmapped children won't be painted so they should not contribute to the default paint volume computation.
This commit is contained in:
parent
98c9dad42f
commit
119a25269e
@ -5207,6 +5207,9 @@ clutter_actor_update_default_paint_volume (ClutterActor *self,
|
|||||||
{
|
{
|
||||||
const ClutterPaintVolume *child_volume;
|
const ClutterPaintVolume *child_volume;
|
||||||
|
|
||||||
|
if (!CLUTTER_ACTOR_IS_MAPPED (child))
|
||||||
|
continue;
|
||||||
|
|
||||||
child_volume = clutter_actor_get_transformed_paint_volume (child, self);
|
child_volume = clutter_actor_get_transformed_paint_volume (child, self);
|
||||||
if (child_volume == NULL)
|
if (child_volume == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user