Fix bug where all members of a family pointed to the same rgba array

This commit is contained in:
Grant Sanderson 2021-01-13 08:17:43 -10:00
parent 5e09a80c5b
commit 5f69899e65

View file

@ -714,7 +714,7 @@ class Mobject(object):
for rgb, o in zip(*make_even(rgbs, opacities))
])
for mob in self.get_family(recurse):
mob.data[name] = rgbas
mob.data[name] = rgbas.copy()
return self
def set_color(self, color, opacity=None, recurse=True):