summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Grittmann <grittmann@cg.uni-saarland.de>2024-10-31 17:04:25 +0100
committerPascal Grittmann <grittmann@cg.uni-saarland.de>2024-10-31 17:04:31 +0100
commita59fb07e4ad09651a5a86857fe30689e85b5a772 (patch)
treeaebd7152c9bf0d3c49ce75ca603d936e54c9815b
parentef8d981267702de38ffc24136f9d823d31781c60 (diff)
downloadredot-engine-a59fb07e4ad09651a5a86857fe30689e85b5a772.tar.gz
set flag for 8 bone weights
-rw-r--r--modules/gltf/gltf_document.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp
index 0a487430a3..ab7f3bdc52 100644
--- a/modules/gltf/gltf_document.cpp
+++ b/modules/gltf/gltf_document.cpp
@@ -3046,6 +3046,7 @@ Error GLTFDocument::_parse_meshes(Ref<GLTFState> p_state) {
}
}
array[Mesh::ARRAY_WEIGHTS] = weights;
+ flags |= Mesh::ARRAY_FLAG_USE_8_BONE_WEIGHTS;
}
if (!indices.is_empty()) {