Explorar o código

Merge pull request #98703 from pgrit/master

Set flag for 8 bone weights in GLTFDocument
Thaddeus Crews hai 10 meses
pai
achega
cd6dad4090
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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()) {