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

Commit ae7e802

Browse files
committed
fix: filter no matte.
1 parent 895edf0 commit ae7e802

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

library/src/main/java/com/opensource/svgaplayer/drawer/SVGACanvasDrawer.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ internal class SVGACanvasDrawer(videoItem: SVGAVideoEntity, val dynamicItem: SVG
2727

2828
sprites.forEachIndexed { index, svgaDrawerSprite ->
2929

30+
// no matte
31+
sprites.get(0).imageKey?.let {
32+
if (!it.endsWith(".matte")) {
33+
drawSprite(svgaDrawerSprite, canvas, frameIndex)
34+
// continue
35+
return@forEachIndexed
36+
}
37+
}
38+
3039
// save matte sprite
3140
svgaDrawerSprite.imageKey?.let {
3241
if (it.endsWith(".matte")) {

0 commit comments

Comments
 (0)