lottie/trim: fix regression, always modify the path in trim::update() call.
[platform/core/uifw/lottie-player.git] / src / lottie / lottieitem.cpp
index ee29113..a882a0a 100644 (file)
@@ -116,8 +116,9 @@ bool LOTCompItem::render(const lottie::Surface &surface)
      */
     mDrawableList.clear();
     mRootLayer->renderList(mDrawableList);
+    VRect clip(0, 0, surface.width(), surface.height());
     for (auto &e : mDrawableList) {
-        e->preprocess();
+        e->preprocess(clip);
     }
 
     VPainter painter(&bitmap);
@@ -966,8 +967,6 @@ void LOTTrimItem::update()
     // when both path and trim are not dirty
     if (!(mDirty || pathDirty())) return;
 
-    if (vCompare(std::fabs(mCache.mStart - mCache.mEnd) , 1)) return;
-
     if (vCompare(mCache.mStart, mCache.mEnd)) {
         for (auto &i : mPathItems) {
             i->updatePath(VPath());