Old post but here in case anyone else runs into the issue. When you swap skeletal meshes it seems to in some cases use the material slots of the previous mesh.
What you need to do is get the Skeletal Mesh Object Reference of the Skeletal Mesh Component. Grab the Materials from the Skeletal Mesh Object Reference and break the data to get the Material Interface which is the original material of the mesh.
1 Like