If an edje file has a Lua group, don't strip any images. No telling how Lua might...
authoronefang <onefang@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 1 Mar 2012 15:46:33 +0000 (15:46 +0000)
committeronefang <onefang@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 1 Mar 2012 15:46:33 +0000 (15:46 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@68578 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/edje_cc_out.c

index a275347..9c727ab 100644 (file)
@@ -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;