edje/perspective - Actually use the global perspective.
authorantognolli <antognolli>
Fri, 5 Aug 2011 18:08:07 +0000 (18:08 +0000)
committerantognolli <antognolli@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 5 Aug 2011 18:08:07 +0000 (18:08 +0000)
The Edje object should use the global perspective if it didn't have its
own perspective set.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@62146 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_calc.c

index 09844d5..ef1d186 100644 (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;