瀏覽代碼

Merge pull request #98703 from pgrit/master

Set flag for 8 bone weights in GLTFDocument
Thaddeus Crews 10 月之前
父節點
當前提交
cd6dad4090
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      modules/gltf/gltf_document.cpp

+ 1 - 0
modules/gltf/gltf_document.cpp

@@ -3482,6 +3482,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()) {