aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorInho Lee <inho.lee@qt.io>2024-03-15 10:33:10 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-03-16 06:39:37 +0000
commit7958cf739630dfc0110e2e49cce27fa66f9e75bb (patch)
treebe2981af02b8f71f59a6b712395c13257d41cc02
parentae972237501dca2598b064fbe30a56aaf77c94d6 (diff)
Asset : Fix --useFloatJointIndices
It made Float32 data but the type was fixed to Int32. Pick-to: 6.6 6.5 Change-Id: I2ee28ec6fe9ca1c40a006fa19ecb601c40e25d33 Reviewed-by: Andy Nichols <andy.nichols@qt.io> (cherry picked from commit c6611028c56601bfd13bcacae90feb9c44d3eb9c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/plugins/assetimporters/assimp/assimputils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/assetimporters/assimp/assimputils.cpp b/src/plugins/assetimporters/assimp/assimputils.cpp
index 099ddbfd..ae9f6317 100644
--- a/src/plugins/assetimporters/assimp/assimputils.cpp
+++ b/src/plugins/assetimporters/assimp/assimputils.cpp
@@ -426,7 +426,7 @@ struct VertexBufferDataExt {
entries.append({
QSSGMesh::MeshInternal::getJointAttrName(),
boneIndexData,
- QSSGMesh::Mesh::ComponentType::Int32,
+ requirments.useFloatJointIndices ? QSSGMesh::Mesh::ComponentType::Float32 : QSSGMesh::Mesh::ComponentType::Int32,
4
});
entries.append({