void setParentLayer(Layer *parent) { mParentLayer = parent; }
void setComplexContent(bool value) { mComplexContent = value; }
bool complexContent() const { return mComplexContent; }
+ void setComplexShape(bool value) { mComplexShape = value; }
+ bool isComplexShape() { return mComplexShape; }
virtual void update(int frameNo, const VMatrix &parentMatrix,
float parentAlpha);
VMatrix matrix(int frameNo) const;
bool mComplexContent{false};
std::unique_ptr<CApiData> mCApiData;
bool mHasDynamicValue{false};
+ bool mComplexShape{false};
};
class CompLayer final : public Layer {
LOTVariant &value) override;
void render(VPainter *painter, const VRle &mask, const VRle &matteRle,
SurfaceCache &cache) final;
- void setComplexShape(bool value) { mComplexShpae = value; }
- bool isComplexShape() { return mComplexShpae; }
protected:
void preprocessStage(const VRect &clip) final;
void updateContent() final;
std::vector<VDrawable *> mDrawableList;
Group * mRoot{nullptr};
- bool mComplexShpae{false};
};
class NullLayer final : public Layer {
clayer().keypath = name();
}
if (complexContent()) clayer().mAlpha = uint8_t(combinedAlpha() * 255.f);
+ if (isComplexShape()) clayer().mAlpha = uint8_t(combinedAlpha() * 255.f);
clayer().mVisible = visible();
// update matte
if (hasMatte()) {