projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98c9dad
)
actor: Check for mapped children in the default get_paint_volume()
author
Emmanuele Bassi
<ebassi@linux.intel.com>
Thu, 12 Apr 2012 16:07:06 +0000
(17:07 +0100)
committer
Emmanuele Bassi
<ebassi@linux.intel.com>
Thu, 12 Apr 2012 16:07:06 +0000
(17:07 +0100)
Unmapped children won't be painted so they should not contribute to the
default paint volume computation.
clutter/clutter-actor.c
patch
|
blob
|
history
diff --git
a/clutter/clutter-actor.c
b/clutter/clutter-actor.c
index
bb2ec11
..
5ac4814
100644
(file)
--- a/
clutter/clutter-actor.c
+++ b/
clutter/clutter-actor.c
@@
-5207,6
+5207,9
@@
clutter_actor_update_default_paint_volume (ClutterActor *self,
{
const ClutterPaintVolume *child_volume;
+ if (!CLUTTER_ACTOR_IS_MAPPED (child))
+ continue;
+
child_volume = clutter_actor_get_transformed_paint_volume (child, self);
if (child_volume == NULL)
{