edje/perspective - Actually use the global perspective.

The Edje object should use the global perspective if it didn't have its
own perspective set.



SVN revision: 62146
This commit is contained in:
Rafael Antognolli 2011-08-05 18:08:07 +00:00
parent fd222d9729
commit e53adf4789
1 changed files with 2 additions and 0 deletions

View File

@ -2756,6 +2756,8 @@ _edje_part_recalc(Edje *ed, Edje_Real_Part *ep, int flags)
// fixme: a tad inefficient as this is a has lookup
ps = edje_object_perspective_get(ed->obj);
if (!ps)
ps = edje_evas_global_perspective_get(evas_object_evas_get(ed->obj));
if (ps)
{
px = ps->px; py = ps->py;