canvas vector: fix incorrect caching hit.

animated vector(lottie) caches current playing resource data,
for resuing if it's possible, but it must take care of the drawing size.

Previous logic missed that part, fixed it.
devs/bu5hm4n/work_multi_input
Hermet Park 3 years ago
parent 2101e3c3d3
commit 6fd0502342
  1. 10
      src/lib/evas/vg/evas_vg_cache.c

@ -473,9 +473,13 @@ evas_cache_vg_tree_get(Vg_Cache_Entry *vg_entry, unsigned int frame_num)
//No need to update.
if (vfd->anim_data)
{
if (vg_entry->root &&
vfd->anim_data->frame_num == frame_num)
return vg_entry->root;
if ((vg_entry->w == vfd->view_box.w) &&
(vg_entry->h == vfd->view_box.h))
{
if (vg_entry->root &&
vfd->anim_data->frame_num == frame_num)
return vg_entry->root;
}
}
else
{

Loading…
Cancel
Save