summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Blechmann <tim@klingt.org>2024-01-27 12:39:46 +0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-02-01 03:11:53 +0000
commitc753a96b557c4db1fd940522b792eb74d4c3be8c (patch)
tree2c87266b74d410b7104197051be9892e7a8413d6
parente6c1e498d92f01d5b64cf21473c0f7bc0c91ea61 (diff)
animation: silence clang warning
silence's clang's: variable 'channelIndex' set but not used [-Wunused-but-set-variable] Change-Id: Ie551ebbd7c3e49146fe0db4cc01c39be45437752 Reviewed-by: Mike Krus <mike.krus@kdab.com> (cherry picked from commit 2477a0b1c9e6fd92d74e0f237caa1b2c9a1cbee0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-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;