Skip to content

Commit

Permalink
fix: changed minor typo in OpenGLVMobject (ManimCommunity#3302)
Browse files Browse the repository at this point in the history
A conditional in interpolate() was previously checking the same triangulation twice.
  • Loading branch information
zach-winkeler authored Jul 24, 2023
1 parent 1c75a91 commit 56bc8ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manim/mobject/opengl/opengl_vectorized_mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ def interpolate(self, mobject1, mobject2, alpha, *args, **kwargs):
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(tri2) or not np.all(tri1 == tri2):
self.refresh_triangulation()
return self

Expand Down

0 comments on commit 56bc8ad

Please sign in to comment.