Fixed a bug in SkeletonComponent with submeshes

Fixed a bug in SkeletonComponent where the submesh count wasn't properly initialized and there were more submeshes than submeshMaterials