st-widget: Don't add hidden actors to the paint volume

We are not painting them anyway.
This commit is contained in:
Adel Gadllah 2013-03-01 18:52:02 +01:00
parent 37595ff3e7
commit ea55c36a3a

View File

@ -791,6 +791,9 @@ st_widget_get_paint_volume (ClutterActor *self,
{ {
const ClutterPaintVolume *child_volume; const ClutterPaintVolume *child_volume;
if (!CLUTTER_ACTOR_IS_VISIBLE (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) if (!child_volume)
return FALSE; return FALSE;