Skip to content

Commit

Permalink
bone import fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pfcDorn committed Jan 18, 2024
1 parent 14e4887 commit df6c6db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/Scripts/SceneImporter/ImporterMeshes.cs
Expand Up @@ -368,7 +368,7 @@ protected async Task ConstructUnityMesh(GLTFMesh gltfMesh, DecodeResult[] decode
// Custom combine all boneweights and bonePerVertex of sub meshes and apply to final combined mesh
// >> Bug(?) in CombineMeshes that does not proper copy bone weights and bones per vertex
NativeArray<BoneWeight1> allBoneWeights = new NativeArray<BoneWeight1>(boneWeightCount, Allocator.TempJob);
NativeArray<byte> allBonesPerVertex = new NativeArray<byte>(boneWeightCount, Allocator.TempJob);
NativeArray<byte> allBonesPerVertex = new NativeArray<byte>(bonesPerVertexCount, Allocator.TempJob);
int currentArrayPositionBoneWeights = 0;
int currentArrayPositionBpV = 0;
for (int i = 0; i < subMeshes.Length; i++)
Expand Down

0 comments on commit df6c6db

Please sign in to comment.