Use arr.all() instead of np.all(arr)

This commit is contained in:
Grant Sanderson
2022-12-28 21:06:51 -08:00
parent 596aea3bf5
commit 4c39c1abd6

View File

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