Skip to content

Commit 3aff661

Browse files
committed
(opengl_mobject): reverted interpolate
1 parent b63ecca commit 3aff661

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

manim/mobject/opengl/opengl_mobject.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2348,13 +2348,11 @@ def construct(self):
23482348
continue
23492349

23502350
if key in ("points", "bounding_box"):
2351-
self.data[key][:] = path_func(
2352-
mobject1.data[key], mobject2.data[key], alpha
2353-
)
2351+
func = path_func
23542352
else:
2355-
self.data[key][:] = interpolate(
2356-
mobject1.data[key], mobject2.data[key], alpha
2357-
)
2353+
func = interpolate
2354+
2355+
self.data[key][:] = func(mobject1.data[key], mobject2.data[key], alpha)
23582356

23592357
for key in self.uniforms:
23602358
if key != "fixed_orientation_center":

0 commit comments

Comments
 (0)