edje: do it in the right order.
authorcedric <cedric>
Wed, 25 Jan 2012 09:36:08 +0000 (09:36 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 25 Jan 2012 09:36:08 +0000 (09:36 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@67526 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/edje_cc_handlers.c

index 679dfdb..c853053 100644 (file)
@@ -2165,15 +2165,6 @@ st_collections_group_name(void)
        edje_collections = eina_list_remove(edje_collections, pc);
        codes = eina_list_remove(codes, cd);
 
-       EINA_LIST_FOREACH(edje_collections, l, pc)
-         {
-            older = eina_hash_find(edje_file->collection, pc->part);
-
-            pc->id = i++;
-            if (older) older->id = pc->id;
-            else if (pc->part == current_pc->part) current_de->id = pc->id;
-         }
-
        for (i = 0; i < pc->parts_count; ++i)
          {
              Edje_Part_Description_Image *ed;
@@ -2190,6 +2181,15 @@ st_collections_group_name(void)
                data_queue_image_remove(&(ed->image.tweens[ed->image.tweens_count - 1]->id),
                                        &(ed->image.tweens[ed->image.tweens_count - 1]->set));
          }
+
+       EINA_LIST_FOREACH(edje_collections, l, pc)
+         {
+            older = eina_hash_find(edje_file->collection, pc->part);
+
+            pc->id = i++;
+            if (older) older->id = pc->id;
+            else if (pc->part == current_pc->part) current_de->id = pc->id;
+         }
      }
 
    eina_hash_direct_add(edje_file->collection, current_de->entry, current_de);