hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e24d6aee6905941c3c994e679891c3587e83f7dd

commit e24d6aee6905941c3c994e679891c3587e83f7dd
Author: Hermet Park <[email protected]>
Date:   Thu Jul 11 20:10:17 2019 +0900

    vector lottie: register node name as it's designed.
    
    Caller could find/access a specific node with the name.
---
 src/static_libs/vg_common/vg_common_json.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/static_libs/vg_common/vg_common_json.c 
b/src/static_libs/vg_common/vg_common_json.c
index c24320261a..94df54eb2f 100644
--- a/src/static_libs/vg_common/vg_common_json.c
+++ b/src/static_libs/vg_common/vg_common_json.c
@@ -356,6 +356,7 @@ _update_vg_tree(Efl_Canvas_Vg_Container *root, const 
LOTLayerNode *layer, int de
           {
              ctree = efl_add(EFL_CANVAS_VG_CONTAINER_CLASS, root);
              efl_key_data_set(root, key, ctree);
+             if (clayer->name) efl_key_data_set(ctree, "_lot_node_name", 
clayer->name);
           }
 #if DEBUG
         for (int i = 0; i < depth; i++) printf("    ");
@@ -440,6 +441,7 @@ vg_common_json_create_vg_node(Vg_File_Data *vfd)
         root = efl_add_ref(EFL_CANVAS_VG_CONTAINER_CLASS, NULL);
         if (!root) return EINA_FALSE;
         efl_key_data_set(root, _get_key_val((void *) tree), tree);
+        if (tree->name) efl_key_data_set(root, "_lot_node_name", tree->name);
         vfd->root = root;
      }
    efl_gfx_color_set(root, tree->mAlpha, tree->mAlpha, tree->mAlpha, 
tree->mAlpha);

-- 


Reply via email to