diff --git a/src/core/texteffect.cpp b/src/core/texteffect.cpp index 586a0770d..fed5ebc23 100644 --- a/src/core/texteffect.cpp +++ b/src/core/texteffect.cpp @@ -29,12 +29,12 @@ #include "Boxes/textboxrenderdata.h" #include "Boxes/textbox.h" -#include "Animators/qpointfanimator.h" +#include "Animators/qvector3danimator.h" #include "MovablePoints/animatedpoint.h" class TextEffectPoint : public AnimatedPoint { public: - TextEffectPoint(QPointFAnimator * const anim, + TextEffectPoint(QVector3DAnimator * const anim, TextEffect* const effect) : AnimatedPoint(anim, TYPE_PATH_POINT), mTextEffect(effect) {} @@ -70,22 +70,22 @@ TextEffect::TextEffect() : eEffect("text effect") { mDiminishInfluence = enve::make_shared( 1, 0, 1, 0.1, "influence"); - mP1Anim = enve::make_shared("point 1"); + mP1Anim = enve::make_shared("point 1"); mP1Anim->getYAnimator()->setValueRange(0, 1); mP1Anim->getYAnimator()->setPrefferedValueStep(0.1); mP1Anim->setBaseValue(-40, 0); - mP2Anim = enve::make_shared("point 2"); + mP2Anim = enve::make_shared("point 2"); mP2Anim->getYAnimator()->setValueRange(0, 1); mP2Anim->getYAnimator()->setPrefferedValueStep(0.1); mP2Anim->setBaseValue(-10, 1); - mP3Anim = enve::make_shared("point 3"); + mP3Anim = enve::make_shared("point 3"); mP3Anim->getYAnimator()->setValueRange(0, 1); mP3Anim->getYAnimator()->setPrefferedValueStep(0.1); mP3Anim->setBaseValue(20, 1); - mP4Anim = enve::make_shared("point 4"); + mP4Anim = enve::make_shared("point 4"); mP4Anim->getYAnimator()->setValueRange(0, 1); mP4Anim->getYAnimator()->setPrefferedValueStep(0.1); - mP4Anim->setBaseValue(50, 0); + mP4Anim->setBaseValue(50, 0, 0); setPointsHandler(enve::make_shared()); mP1Pt = enve::make_shared(mP1Anim.get(), this); diff --git a/src/core/texteffect.h b/src/core/texteffect.h index d8a5d7807..6371b94ee 100644 --- a/src/core/texteffect.h +++ b/src/core/texteffect.h @@ -85,10 +85,10 @@ class CORE_EXPORT TextEffect : public eEffect { qsptr mDiminishCont; qsptr mDiminishInfluence; - qsptr mP1Anim; - qsptr mP2Anim; - qsptr mP3Anim; - qsptr mP4Anim; + qsptr mP1Anim; + qsptr mP2Anim; + qsptr mP3Anim; + qsptr mP4Anim; stdsptr mP1Pt; stdsptr mP2Pt;