mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Account for null fill cases in invinisble_copy
This commit is contained in:
parent
28c875c2c3
commit
6d4782506a
1 changed files with 2 additions and 0 deletions
|
@ -885,6 +885,8 @@ class VMobject(Mobject):
|
|||
|
||||
def invisible_copy(self):
|
||||
result = self.copy()
|
||||
if not result.has_fill() or result.get_num_points() == 0:
|
||||
return result
|
||||
result.append_vectorized_mobject(self.copy().reverse_points())
|
||||
result.set_opacity(0)
|
||||
return result
|
||||
|
|
Loading…
Add table
Reference in a new issue