Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
fix: filter no matte.
Browse files Browse the repository at this point in the history
  • Loading branch information
errnull committed Jun 16, 2019
1 parent 3a39ff6 commit 1257db4
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ internal class SVGACanvasDrawer(videoItem: SVGAVideoEntity, val dynamicItem: SVG

// save matte sprite
svgaDrawerSprite.imageKey?.let {

// no matte
sprites.get(0).imageKey?.let {
if (!it.endsWith(".matte")) {
drawSprite(svgaDrawerSprite, canvas, frameIndex)
// continue
return@forEachIndexed
}
}

if (it.endsWith(".matte")) {
matteSprites.put(it, svgaDrawerSprite)
// continue
Expand Down

0 comments on commit 1257db4

Please sign in to comment.