forked from enlightenment/efl
Edje_cc: update images.set.image names when write edj file.
There are few image formats that converted into *.png on data writing stage (*.svg, *.tgv). After converting image, this image entry name changes by <name>.<vector format ext>.png. This make possible save vector images into edj file. Because images set could contain vector images too - after save on disk set image entry name wasn't updated. And still have original name: <name>.<vector format ext>. This commit update image set entries name accordingly to the global pool of images. @fix
This commit is contained in:
parent
f32486ced5
commit
5fb595e714
|
@ -1424,6 +1424,22 @@ data_write_images(Eet_File *ef, int *image_num)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (i = 0; i < (int)edje_file->image_dir->sets_count; i++)
|
||||||
|
{
|
||||||
|
Edje_Image_Directory_Set *set;
|
||||||
|
Edje_Image_Directory_Set_Entry *set_entry;
|
||||||
|
Edje_Image_Directory_Entry *img;
|
||||||
|
Eina_List *ll = NULL;
|
||||||
|
|
||||||
|
set = edje_file->image_dir->sets + i;
|
||||||
|
if (!set->entries) continue;
|
||||||
|
EINA_LIST_FOREACH(set->entries, ll, set_entry)
|
||||||
|
{
|
||||||
|
img = &edje_file->image_dir->entries[set_entry->id];
|
||||||
|
set_entry->name = img->entry;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue