Skip to content

Commit b74a54d

Browse files
authored
fix: skinning matrix not getting applied on mesh normals of imported FBX (stride3d#2925)
This is a regression which was introduced in 7b84fed, it basically adds back this line: https://github.com/stride3d/stride/blob/b96860acf82aa80758117aa916a24b0d894b076d/sources/tools/Stride.Importer.FBX/MeshConverter.cpp#L273
1 parent 7b07233 commit b74a54d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sources/tools/Stride.Importer.3D/MeshConverter.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,10 @@ private unsafe MeshInfo ProcessMesh(Scene* scene, Silk.NET.Assimp.Mesh* mesh, Di
874874

875875
totalClusterCount = (int)mesh->MNumBones;
876876
if (totalClusterCount > 0)
877+
{
877878
hasSkinningPosition = true;
879+
hasSkinningNormal = mesh->MNormals != null;
880+
}
878881
}
879882

880883
// Build the vertex declaration

0 commit comments

Comments
 (0)