mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
loader/lottie: fix a default color of the solid layer.
we assume the default color is black. before this fix, the value is not designated properly.
This commit is contained in:
parent
ce5ac1c114
commit
c23c556f61
2 changed files with 2 additions and 2 deletions
|
@ -393,7 +393,7 @@ struct LottieLayer : LottieGroup
|
|||
int32_t remap(int32_t frameNo);
|
||||
|
||||
//Optimize: compact data??
|
||||
RGB24 color = {255, 255, 255};
|
||||
RGB24 color;
|
||||
|
||||
struct {
|
||||
CompositeMethod type = CompositeMethod::None;
|
||||
|
|
|
@ -86,7 +86,7 @@ BlendMethod LottieParser::getBlendMethod()
|
|||
|
||||
RGB24 LottieParser::getColor(const char *str)
|
||||
{
|
||||
RGB24 color;
|
||||
RGB24 color = {0, 0, 0};
|
||||
|
||||
if (!str) return color;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue