Account for null fill cases in invinisble_copy

This commit is contained in:
Grant Sanderson 2023-01-26 16:49:36 -08:00
parent 28c875c2c3
commit 6d4782506a

View file

@ -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