Fix wrong check for path_func in last commit

This commit is contained in:
Grant Sanderson 2024-08-20 09:25:30 -05:00
parent a8ef9629eb
commit e61957a4e0

View file

@ -1815,7 +1815,7 @@ class Mobject(object):
if key in self.const_data_keys:
md1 = md1[0]
md2 = md2[0]
if path_func in self.pointlike_data_keys:
if key in self.pointlike_data_keys:
self.data[key] = path_func(md1, md2, alpha)
else:
self.data[key] = (1 - alpha) * md1 + alpha * md2