summaryrefslogtreecommitdiffstats
path: root/src/animation/frontend/qchannel.cpp
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2017-08-26 15:32:11 +0100
committerSean Harmer <sean.harmer@kdab.com>2017-09-02 18:10:37 +0000
commitbbc14b772c323476a5cc41c1da06921f4e3dbf3e (patch)
tree3d203ed3e74e7209f98004e213a4de5b418d8b92 /src/animation/frontend/qchannel.cpp
parentdf1d871a83b415313a02415366dd0682944ad211 (diff)
Extend QChannel and Channel to support jointIndex members
Needed for animartion aspect support of skeletons. Change-Id: I89027a62ffcac68318ef8c8645b4720e71ff1697 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/animation/frontend/qchannel.cpp')
-rw-r--r--src/animation/frontend/qchannel.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/animation/frontend/qchannel.cpp b/src/animation/frontend/qchannel.cpp
index 9c74fad09..f5e4ac7a3 100644
--- a/src/animation/frontend/qchannel.cpp
+++ b/src/animation/frontend/qchannel.cpp
@@ -50,6 +50,7 @@ class QChannelPrivate
public:
QVector<QChannelComponent> m_channelComponents;
QString m_name;
+ int m_jointIndex = -1;
};
QChannel::QChannel()
@@ -90,6 +91,16 @@ QString QChannel::name() const
return d->m_name;
}
+void QChannel::setJointIndex(int jointIndex)
+{
+ d->m_jointIndex = jointIndex;
+}
+
+int QChannel::jointIndex() const
+{
+ return d->m_jointIndex;
+}
+
int QChannel::channelComponentCount() const
{
return d->m_channelComponents.size();