From 89b472066f920c971a73c0f2cb5bf4271dc9907b Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 1 Mar 2012 15:46:33 +0000 Subject: [PATCH] If an edje file has a Lua group, don't strip any images. No telling how Lua might concoct it's image names, but it expects to find them in it's own file. SVN revision: 68578 --- legacy/edje/src/bin/edje_cc_out.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/legacy/edje/src/bin/edje_cc_out.c b/legacy/edje/src/bin/edje_cc_out.c index a275347..9c727ab 100644 --- a/legacy/edje/src/bin/edje_cc_out.c +++ b/legacy/edje/src/bin/edje_cc_out.c @@ -1633,6 +1633,7 @@ data_process_lookups(void) Eina_List *l; Eina_Hash *images_in_use; void *data; + Eina_Bool is_lua = FALSE; /* remove all unreferenced Edje_Part_Collection */ EINA_LIST_FOREACH_SAFE(edje_collections, l, l2, pc) @@ -1684,6 +1685,8 @@ data_process_lookups(void) unsigned int count = 0; unsigned int i; + if (pc->lua_script_only) + is_lua = TRUE; #define PROGRAM_ID_SET(Type, Pc, It, Count) \ for (It = 0; It < Pc->programs.Type ## _count; ++It) \ { \ @@ -1884,7 +1887,7 @@ data_process_lookups(void) free(image); } - if (edje_file->image_dir) + if (edje_file->image_dir && !is_lua) { Edje_Image_Directory_Entry *de; Edje_Image_Directory_Set *set; -- 2.7.4