mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
In interpolate, only update data status if some keys are unlocked
This commit is contained in:
parent
88590e5a05
commit
cb36fda6d7
1 changed files with 2 additions and 1 deletions
|
@ -1710,7 +1710,6 @@ class Mobject(object):
|
|||
|
||||
# Interpolate
|
||||
|
||||
@affects_data
|
||||
def interpolate(
|
||||
self,
|
||||
mobject1: Mobject,
|
||||
|
@ -1719,6 +1718,8 @@ class Mobject(object):
|
|||
path_func: Callable[[np.ndarray, np.ndarray, float], np.ndarray] = straight_path
|
||||
):
|
||||
keys = [k for k in self.data.dtype.names if k not in self.locked_data_keys]
|
||||
if keys:
|
||||
self.note_changed_data()
|
||||
for key in keys:
|
||||
func = path_func if key in self.pointlike_data_keys else interpolate
|
||||
md1 = mobject1.data[key]
|
||||
|
|
Loading…
Add table
Reference in a new issue