rlottie/parser: opacity attribute can be float
authorsubhransu mohanty <sub.mohanty@samsung.com>
Tue, 4 Jun 2019 08:45:48 +0000 (17:45 +0900)
committerHermet Park <hermetpark@gmail.com>
Wed, 19 Jun 2019 04:35:31 +0000 (13:35 +0900)
src/lottie/lottiemodel.h

index 2fe1117..9cf17b2 100644 (file)
@@ -578,7 +578,7 @@ public:
 public:
     FillRule                       mFillRule{FillRule::Winding}; /* "r" */
     LOTAnimatable<LottieColor>     mColor;   /* "c" */
-    LOTAnimatable<int>             mOpacity{100};  /* "o" */
+    LOTAnimatable<float>           mOpacity{100};  /* "o" */
     bool                           mEnabled{true}; /* "fillEnabled" */
 };
 
@@ -603,7 +603,7 @@ public:
     int getDashInfo(int frameNo, float *array) const;
 public:
     LOTAnimatable<LottieColor>        mColor;      /* "c" */
-    LOTAnimatable<int>                mOpacity{100};    /* "o" */
+    LOTAnimatable<float>              mOpacity{100};    /* "o" */
     LOTAnimatable<float>              mWidth{0};      /* "w" */
     CapStyle                          mCapStyle{CapStyle::Flat};   /* "lc" */
     JoinStyle                         mJoinStyle{JoinStyle::Miter};  /* "lj" */