From 4c39c1abd6f0c2faf8d8e3d9a67fedfb85bbbfbd Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 28 Dec 2022 21:06:51 -0800 Subject: [PATCH] Use arr.all() instead of np.all(arr) --- manimlib/mobject/types/vectorized_mobject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.py index a1c7d064..0a65aacd 100644 --- a/manimlib/mobject/types/vectorized_mobject.py +++ b/manimlib/mobject/types/vectorized_mobject.py @@ -904,7 +904,7 @@ class VMobject(Mobject): if self.has_fill(): tri1 = mobject1.get_triangulation() tri2 = mobject2.get_triangulation() - if len(tri1) != len(tri1) or not np.all(tri1 == tri2): + if len(tri1) != len(tri1) or not (tri1 == tri2).all(): self.refresh_triangulation() return self