vg_common_json: register shape name as it's designed.

Summary: Caller could find/access a specific node with the name.

Test Plan: N/A

Reviewers: Hermet, herb, kimcinoo, smohanty

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11480
This commit is contained in:
junsu choi 2020-03-10 21:12:52 +09:00 committed by Hermet Park
parent 107e425ef6
commit 2747c84ec1
1 changed files with 2 additions and 1 deletions

View File

@ -86,10 +86,11 @@ _construct_drawable_nodes(Efl_Canvas_Vg_Container *parent, const LOTLayerNode *l
const float *data = node->mPath.ptPtr;
if (!data) continue;
if (node->keypath) efl_key_data_set(shape, "_lot_node_name", node->keypath);
efl_gfx_entity_visible_set(shape, EINA_TRUE);
#if DEBUG
for (int i = 0; i < depth; i++) printf(" ");
printf("%s (%p)\n", efl_class_name_get(efl_class_get(shape)), shape);
printf("%s (%p) keypath : %s\n", efl_class_name_get(efl_class_get(shape)), shape, node->keypath);
#endif
//0: Path
efl_gfx_path_reserve(shape, node->mPath.elmCount, node->mPath.ptCount);