mirror of
https://github.com/3b1b/manim.git
synced 2025-11-13 23:27:49 +00:00
In aligning families, scale inserted submobjects to 0
This commit is contained in:
parent
88ed1a2fdb
commit
b93e284695
1 changed files with 1 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue