diff options
author | Jim Albamont <jim.albamont@kdab.com> | 2018-10-03 14:08:39 -0500 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2018-10-05 15:34:52 +0000 |
commit | f575334691dedc5e34e6391fe638f313de8270eb (patch) | |
tree | 51e81339b1ed351d790ae4a43989e949945a691c | |
parent | d8789d8fd17fd58f06003e9846b3d107ffc8ec52 (diff) |
Fix notifications for QClipAnimator::clip property
Qt3DAnimation::QAbstractAnimationClip was not registered as metatype resulting
in the following error when calling QClipAnimator::setClip:
QMetaProperty::read: Unable to handle unregistered datatype 'Qt3DAnimation::QAbstractAnimationClip*' for property 'Qt3DAnimation::QClipAnimator::clip
Change-Id: If92d781fdab5be06ce11ec88f0b3921cfbd557ff
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Reviewed-by: Mike Krus <mike.krus@kdab.com>
-rw-r--r-- | src/animation/frontend/qanimationaspect.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/animation/frontend/qanimationaspect.cpp b/src/animation/frontend/qanimationaspect.cpp index 9b23a7b1d..a25eb533e 100644 --- a/src/animation/frontend/qanimationaspect.cpp +++ b/src/animation/frontend/qanimationaspect.cpp @@ -96,6 +96,7 @@ QAnimationAspect::QAnimationAspect(QAnimationAspectPrivate &dd, QObject *parent) qRegisterMetaType<Qt3DAnimation::QAnimationClipLoader*>(); qRegisterMetaType<Qt3DAnimation::QChannelMapper*>(); qRegisterMetaType<QVector<Qt3DCore::Sqt>>(); + qRegisterMetaType<Qt3DAnimation::QAbstractAnimationClip*>(); registerBackendType<QAbstractAnimationClip>( QSharedPointer<Animation::NodeFunctor<Animation::AnimationClip, Animation::AnimationClipLoaderManager>>::create(d->m_handler.data(), |