summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-07-11 20:10:17 +0900
committerHermet Park <hermetpark@gmail.com>2019-07-12 10:19:18 +0900
commite24d6aee6905941c3c994e679891c3587e83f7dd (patch)
treee2bc3540b96805de0c488adbe1ea7bf1b61a4a9d /src/static_libs
parentb6ebcc35fcc03388f2d128ed2e81dd9b4b28c12a (diff)
vector lottie: register node name as it's designed.
Caller could find/access a specific node with the name.
Diffstat (limited to 'src/static_libs')
-rw-r--r--src/static_libs/vg_common/vg_common_json.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/static_libs/vg_common/vg_common_json.c b/src/static_libs/vg_common/vg_common_json.c
index c243202..94df54e 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
356 { 356 {
357 ctree = efl_add(EFL_CANVAS_VG_CONTAINER_CLASS, root); 357 ctree = efl_add(EFL_CANVAS_VG_CONTAINER_CLASS, root);
358 efl_key_data_set(root, key, ctree); 358 efl_key_data_set(root, key, ctree);
359 if (clayer->name) efl_key_data_set(ctree, "_lot_node_name", clayer->name);
359 } 360 }
360#if DEBUG 361#if DEBUG
361 for (int i = 0; i < depth; i++) printf(" "); 362 for (int i = 0; i < depth; i++) printf(" ");
@@ -440,6 +441,7 @@ vg_common_json_create_vg_node(Vg_File_Data *vfd)
440 root = efl_add_ref(EFL_CANVAS_VG_CONTAINER_CLASS, NULL); 441 root = efl_add_ref(EFL_CANVAS_VG_CONTAINER_CLASS, NULL);
441 if (!root) return EINA_FALSE; 442 if (!root) return EINA_FALSE;
442 efl_key_data_set(root, _get_key_val((void *) tree), tree); 443 efl_key_data_set(root, _get_key_val((void *) tree), tree);
444 if (tree->name) efl_key_data_set(root, "_lot_node_name", tree->name);
443 vfd->root = root; 445 vfd->root = root;
444 } 446 }
445 efl_gfx_color_set(root, tree->mAlpha, tree->mAlpha, tree->mAlpha, tree->mAlpha); 447 efl_gfx_color_set(root, tree->mAlpha, tree->mAlpha, tree->mAlpha, tree->mAlpha);