int solidWidth() const noexcept{return mSolidLayer.mWidth;}
int solidHeight() const noexcept{return mSolidLayer.mHeight;}
LottieColor solidColor() const noexcept{return mSolidLayer.mColor;}
+ bool autoOrient() const noexcept{return mAutoOrient;}
int timeRemap(int frameNo) const;
public:
struct SolidLayer {
bool mHasRepeater{false};
bool mHasGradient{false};
bool mRoot{false};
+ bool mAutoOrient{false};
std::vector<std::shared_ptr<LOTMaskData>> mMasks;
LOTCompositionData *mCompRef;
};
layer->mHasMask = GetBool();
} else if (0 == strcmp(key, "masksProperties")) {
parseMaskProperty(layer);
+ } else if (0 == strcmp(key, "ao")) {
+ layer->mAutoOrient = GetInt();
} else {
#ifdef DEBUG_PARSER
vWarning << "Layer Attribute Skipped : " << key;
parseProperty(obj->mSkewAxis);
} else if (0 == strcmp(key, "o")) {
parseProperty(obj->mOpacity);
- } else if (0 == strcmp(key, "hd")) {
+ } else if (0 == strcmp(key, "hd")) {
obj->mHidden = GetBool();
} else {
Skip(key);
<< ", outFm:" << obj->mOutFrame
<< ", stFm:" << obj->mStartFrame
<< ", ts:" << obj->mTimeStreatch
+ << ", ao:" << obj->autoOrient()
<< "\n";
visitChildren(static_cast<LOTGroupData *>(obj), level);
vDebug << level