forked from enlightenment/efl
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.
This commit is contained in:
parent
e8459a8e4b
commit
17b3d98a62
|
@ -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…
Reference in New Issue