How do I grid of erros (mes.colors out of bounds)>

So I am making a flag blow in the wind with unity 5. Looks really cool. However, I get 2 errors whenever I click on the ‘cloth’. The errors are below and pictures of the inspecto

r are included. I am not sure why exactly.

=====================================================
Mesh.colors is out of bounds. The supplied array needs to be the same size as the Mesh.vertices array.
UnityEditor.ClothInspector:OnEnable()

IndexOutOfRangeException: Array index is out of range.
UnityEditor.ClothInspector.SetupSelectedMeshColors () (at C:/buildslave/unity/build/Editor/Mono/Inspector/ClothInspector.cs:337)
UnityEditor.ClothInspector.OnEnable () (at C:/buildslave/unity/build/Editor/Mono/Inspector/ClothInspector.cs:249)

This appears to be a bug with ClothInspector: this occurs when you have a prefab with a Cloth component which has any Constraints edited.

Hey guys… I was wondering if there is a workaround for this? I’ve searched a bit and haven’t found anything. Using the latest version of unity. Simple model with one texture, used as a floppy hat on a character. Nothing special really… Just wondering why I’m getting this error. Thanks.

I am not sure if you had the same problem as I had but for some reason the Cloth component and Skinned Mesh Renderer component switched position. I just had to make sure that the Skinned Mesh Renderer was on top of the Cloth component.

Hope it helps.