diff --git a/abmatt/converters/colors.py b/abmatt/converters/colors.py index 1399050..2c3df4b 100644 --- a/abmatt/converters/colors.py +++ b/abmatt/converters/colors.py @@ -140,7 +140,7 @@ def combine(self, color, combine_geometry=False): if combine_geometry: # Make this apart of the tris if self.combined_index.stop != len(self.face_indices): raise RuntimeError('Cannot combine color geometry in previously combined color!') - if (self.rgba_colors != color.rgba_colors).all(): + if not np.array_equal(self.rgba_colors, color.rgba_colors): color.face_indices += len(self) self.rgba_colors = np.append(self.rgba_colors, color.rgba_colors, 0) color.combined_index = slice(len(self.face_indices), len(self.face_indices) + len(color.face_indices))