In aligning families, scale inserted submobjects to 0

This commit is contained in:
Grant Sanderson
2023-01-24 15:29:09 -08:00
parent 88ed1a2fdb
commit b93e284695

View File

@ -1673,12 +1673,7 @@ class Mobject(object):
for submob, sf in zip(self.submobjects, split_factors):
new_submobs.append(submob)
for k in range(1, sf):
new_submob = submob.copy()
# If the submobject is at all transparent, then
# make the copy completely transparent
if submob.get_opacity() < 1:
new_submob.set_opacity(0)
new_submobs.append(new_submob)
new_submobs.append(submob.copy().scale(0))
self.set_submobjects(new_submobs)
return self