Tiny VMobject.has_stroke update

This commit is contained in:
Grant Sanderson 2022-12-27 19:12:55 -08:00
parent 8c44834554
commit 6044e475a4

View file

@ -377,7 +377,7 @@ class VMobject(Mobject):
return self.get_stroke_color()
def has_stroke(self) -> bool:
return bool(self.get_stroke_widths().any() and self.get_stroke_opacities().any())
return any(self.get_stroke_widths()) and any(self.get_stroke_opacities())
def has_fill(self) -> bool:
return any(self.get_fill_opacities())