vector lottie: Set visibility vg node 11/218511/1
authorJunsuChoi <jsuya.choi@samsung.com>
Mon, 25 Nov 2019 04:39:01 +0000 (13:39 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Mon, 25 Nov 2019 04:45:17 +0000 (13:45 +0900)
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

Change-Id: I85b0b5f268d32f1e38b358b79686a41631811ba9

src/static_libs/vg_common/vg_common_json.c

index 43ef86b..734f7f6 100644 (file)
@@ -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;