capi: rename the member name.
authorHermet Park <hermetpark@gmail.com>
Mon, 5 Aug 2019 11:35:30 +0000 (20:35 +0900)
committerHermet Park <hermetpark@gmail.com>
Mon, 12 Aug 2019 08:31:06 +0000 (17:31 +0900)
there is a conflict naming between name and keypath,
we should keep them same in one name.

inc/rlottiecommon.h
src/lottie/lottieitem.cpp

index 72ab232..1b8968d 100644 (file)
@@ -202,7 +202,7 @@ typedef struct LOTLayerNode {
     LOTMatteType mMatte;
     int          mVisible;
     unsigned char mAlpha;
-    const char  *name;
+    const char  *keypath;
 
 } LOTLayerNode;
 
index 0545df9..f1e7960 100644 (file)
@@ -227,7 +227,7 @@ void LOTLayerItem::buildLayerNode()
         mLayerCNode->mClipPath.elmPtr = nullptr;
         mLayerCNode->mClipPath.ptCount = 0;
         mLayerCNode->mClipPath.elmCount = 0;
-        mLayerCNode->name = name().c_str();
+        mLayerCNode->keypath = name().c_str();
     }
     if (complexContent()) mLayerCNode->mAlpha = uchar(combinedAlpha() * 255.f);
     mLayerCNode->mVisible = visible();