Ensure align_family works well with VMobject fill

This commit is contained in:
Grant Sanderson
2023-01-25 09:50:16 -08:00
parent 4cb9c9c2fc
commit 93dd9f687b
2 changed files with 11 additions and 1 deletions

View File

@ -1673,10 +1673,13 @@ class Mobject(object):
for submob, sf in zip(self.submobjects, split_factors):
new_submobs.append(submob)
for k in range(1, sf):
new_submobs.append(submob.copy().scale(0))
new_submobs.append(submob.invisible_copy())
self.set_submobjects(new_submobs)
return self
def invisible_copy(self):
return self.copy().set_opacity(0)
# Interpolate
def interpolate(