forked from enlightenment/efl
vector lottie: register node name as it's designed.
Caller could find/access a specific node with the name.
This commit is contained in:
parent
b6ebcc35fc
commit
e24d6aee69
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue