Meshes Materials array not correct.

This was properly working in 4.5 but now that I have transferred stuff into 4.6 it no longer works. The length of the “Materials” array for the mesh is always 1 even though the mesh itself has 5 materials. Any ideas?