mirror of
https://github.com/3b1b/manim.git
synced 2025-11-13 22:18:03 +00:00
Tiny VMobject.has_stroke update
This commit is contained in:
parent
8c44834554
commit
6044e475a4
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue