diff options
author | JunsuChoi <jsuya.choi@samsung.com> | 2019-11-25 13:39:01 +0900 |
---|---|---|
committer | Hermet Park <hermetpark@gmail.com> | 2019-11-25 13:39:01 +0900 |
commit | 0f9b749f68fd250989a2810ce54cf24d3afd0f73 (patch) | |
tree | a2601080c377461579f634b031f3255745744968 | |
parent | 58e09586bf3e4cdd606f955b8c2ea5eb315f94ad (diff) | |
download | efl-0f9b749f68fd250989a2810ce54cf24d3afd0f73.tar.gz |
vector lottie: Set visibility vg node
Summary:
All nodes reset their visibility when they are reused.
Therefore, visibility must be set true if mVisibile is true.
Test Plan: N/A
Reviewers: Hermet, kimcinoo, smohanty
Reviewed By: Hermet
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D10731
-rw-r--r-- | src/static_libs/vg_common/vg_common_json.c | 4 |
1 files changed, 4 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 43ef86b353..734f7f648d 100644 --- a/src/static_libs/vg_common/vg_common_json.c +++ b/src/static_libs/vg_common/vg_common_json.c @@ -184,6 +184,7 @@ _construct_drawable_nodes(Efl_Canvas_Vg_Container *parent, const LOTLayerNode *l grad = efl_add(EFL_CANVAS_VG_GRADIENT_LINEAR_CLASS, parent); efl_key_data_set(shape, key, grad); } + efl_gfx_entity_visible_set(grad, EINA_TRUE); efl_gfx_gradient_linear_start_set(grad, node->mGradient.start.x, node->mGradient.start.y); efl_gfx_gradient_linear_end_set(grad, node->mGradient.end.x, node->mGradient.end.y); } @@ -196,6 +197,7 @@ _construct_drawable_nodes(Efl_Canvas_Vg_Container *parent, const LOTLayerNode *l grad = efl_add(EFL_CANVAS_VG_GRADIENT_RADIAL_CLASS, parent); efl_key_data_set(shape, key, grad); } + efl_gfx_entity_visible_set(grad, EINA_TRUE); efl_gfx_gradient_radial_center_set(grad, node->mGradient.center.x, node->mGradient.center.y); efl_gfx_gradient_radial_focal_set(grad, node->mGradient.focal.x, node->mGradient.focal.y); efl_gfx_gradient_radial_radius_set(grad, node->mGradient.cradius); @@ -307,6 +309,7 @@ _construct_masks(Efl_Canvas_Vg_Container *mtarget, LOTMask *masks, unsigned int msource = efl_add(EFL_CANVAS_VG_CONTAINER_CLASS, mtarget); efl_key_data_set(mtarget, key, msource); } + efl_gfx_entity_visible_set(msource, EINA_TRUE); //FIXME : EFL_GFX_VG_COMPOSITE_METHOD_ALPHA option is temporary //Currently matte alpha implements is same the mask intersect implement. @@ -327,6 +330,7 @@ _construct_masks(Efl_Canvas_Vg_Container *mtarget, LOTMask *masks, unsigned int msource = efl_add(EFL_CANVAS_VG_CONTAINER_CLASS, mtarget); efl_key_data_set(mtarget, key, msource); } + efl_gfx_entity_visible_set(msource, EINA_TRUE); _construct_mask_nodes(msource, mask, depth + 1); Efl_Gfx_Vg_Composite_Method mask_mode; |