diff options
Diffstat (limited to 'src/bodymovin')
-rw-r--r-- | src/bodymovin/bmshape.cpp | 5 | ||||
-rw-r--r-- | src/bodymovin/bmshape_p.h | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/bodymovin/bmshape.cpp b/src/bodymovin/bmshape.cpp index 38b994b..f65c554 100644 --- a/src/bodymovin/bmshape.cpp +++ b/src/bodymovin/bmshape.cpp @@ -84,7 +84,7 @@ QMap<QLatin1String, int> BMShape::setShapeMap() return shapeMap; } -BMShape *BMShape::construct(QJsonObject definition, BMBase *parent, int constructAs) +BMShape *BMShape::construct(QJsonObject definition, BMBase *parent) { qCDebug(lcLottieQtBodymovinParser) << "BMShape::construct()"; @@ -93,9 +93,6 @@ BMShape *BMShape::construct(QJsonObject definition, BMBase *parent, int construc int typeToBuild = m_shapeMap.value(QLatin1String(type.data()), -1); - if (constructAs != BM_SHAPE_ANY_TYPE_IX) - typeToBuild = constructAs; - switch (typeToBuild) { case BM_SHAPE_GROUP_IX: { diff --git a/src/bodymovin/bmshape_p.h b/src/bodymovin/bmshape_p.h index 43ca20c..349be5a 100644 --- a/src/bodymovin/bmshape_p.h +++ b/src/bodymovin/bmshape_p.h @@ -76,7 +76,7 @@ public: BMBase *clone() const override; - static BMShape *construct(QJsonObject definition, BMBase *parent = nullptr, int constructAs = BM_SHAPE_ANY_TYPE_IX); + static BMShape *construct(QJsonObject definition, BMBase *parent = nullptr); virtual const QPainterPath &path() const; virtual bool acceptsTrim() const; |