From 2747c84ec159dff12c0854c34f20dd662bcbe7b3 Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Tue, 10 Mar 2020 21:12:52 +0900 Subject: [PATCH] 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 --- src/static_libs/vg_common/vg_common_json.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/static_libs/vg_common/vg_common_json.c b/src/static_libs/vg_common/vg_common_json.c index f7b3e9d2f5..b9b2900ff8 100644 --- a/src/static_libs/vg_common/vg_common_json.c +++ b/src/static_libs/vg_common/vg_common_json.c @@ -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);