+ def prepare_colors(self, progress):
+ if not self.colors:
+ return
+
+ self.split_vertices(self.find_color_group, progress)
+
+ for v in self.vertices:
+ if v.faces:
+ f = v.faces[0]
+ v.color = self.colors.colors[f.get_loop_index(v)]
+ else:
+ v.color = (1.0, 1.0, 1.0, 1.0)
+