CDDM_tessfaces_to_faces wasbt updating the polyindex (missed incrementing the polyindex pointer). also added an assert so non release builds will complain when CDDM_calc_edges_tessface() needs to run before CDDM_tessfaces_to_faces().