evas: no need to get the data if it is not the right type of object.

This commit is contained in:
Cedric BAIL 2015-08-19 16:12:58 +02:00
parent c57cf86d6f
commit f1e3c7f41f
1 changed files with 3 additions and 2 deletions

View File

@ -128,13 +128,14 @@ _evas_vg_render(Evas_Object_Protected_Data *obj, Evas_VG_Data *vd,
void *output, void *context, void *surface, Efl_VG *n,
Eina_Array *clips, Eina_Bool do_async)
{
Efl_VG_Container_Data *vc = eo_data_scope_get(n, EFL_VG_CONTAINER_CLASS);
if (eo_isa(n, EFL_VG_CONTAINER_CLASS))
{
Efl_VG_Container_Data *vc;
Efl_VG *child;
Eina_List *l;
vc = eo_data_scope_get(n, EFL_VG_CONTAINER_CLASS);
EINA_LIST_FOREACH(vc->children, l, child)
_evas_vg_render(obj, vd,
output, context, surface, child,