summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTim Blechmann <tim@klingt.org>2024-01-27 12:39:46 +0800
committerTim Blechmann <tim@klingt.org>2024-02-01 09:34:53 +0800
commit2477a0b1c9e6fd92d74e0f237caa1b2c9a1cbee0 (patch)
tree91cddeefd190f10bbe17c62697b9f94c4c2dd727 /src
parent582e38a1cca63334c01fb4fff65f0d6d36c8de6f (diff)
animation: silence clang warning
silence's clang's: variable 'channelIndex' set but not used [-Wunused-but-set-variable] Change-Id: Ie551ebbd7c3e49146fe0db4cc01c39be45437752 Pick-to: 6.7 Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'src')
-rw-r--r--src/animation/backend/gltfimporter.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/animation/backend/gltfimporter.cpp b/src/animation/backend/gltfimporter.cpp
index 469b82298..9543e926c 100644
--- a/src/animation/backend/gltfimporter.cpp
+++ b/src/animation/backend/gltfimporter.cpp
@@ -460,7 +460,6 @@ GLTFImporter::AnimationNameAndChannels GLTFImporter::createAnimationData(qsizety
for (const auto &skin : m_skins)
nodeIndexToJointIndexMaps.push_back(createNodeIndexToJointIndexMap(skin));
- int channelIndex = 0;
for (const auto &channel : animation.channels) {
Qt3DAnimation::Animation::Channel outputChannel;
outputChannel.name = gltfTargetPropertyToChannelName(channel.targetProperty);
@@ -591,7 +590,6 @@ GLTFImporter::AnimationNameAndChannels GLTFImporter::createAnimationData(qsizety
}
nameAndChannels.channels.push_back(outputChannel);
- ++channelIndex;
}
return nameAndChannels;