File: Init-keyframe.patch

package info (click to toggle)
rlottie 0.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,864 kB
  • sloc: cpp: 20,368; asm: 221; ansic: 194; makefile: 15
file content (18 lines) | stat: -rw-r--r-- 538 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Do default initialization of key frame values
Bug: https://github.com/Samsung/rlottie/issues/522
Author: Nicholas Guriev <guriev-ns@ya.ru>
Last-Update: Wed, 02 Mar 2022 19:12:30 +0300

--- a/src/lottie/lottiemodel.h
+++ b/src/lottie/lottiemodel.h
@@ -178,8 +178,8 @@ inline T lerp(const T& start, const T& e
 template <typename T>
 struct LOTKeyFrameValue
 {
-    T mStartValue;
-    T mEndValue;
+    T mStartValue{};
+    T mEndValue{};
     T value(float t) const {
         return lerp(mStartValue, mEndValue, t);
     }