mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Finish Transforms with a call to Mobject.become
This commit is contained in:
parent
164c9ba754
commit
28c875c2c3
2 changed files with 1 additions and 6 deletions
|
@ -70,6 +70,7 @@ class Transform(Animation):
|
|||
def finish(self) -> None:
|
||||
super().finish()
|
||||
self.mobject.unlock_data()
|
||||
self.mobject.become(self.target_mobject)
|
||||
|
||||
def create_target(self) -> Mobject:
|
||||
# Has no meaningful effect here, but may be useful
|
||||
|
|
|
@ -1719,12 +1719,6 @@ class Mobject(object):
|
|||
keys = [k for k in self.data.dtype.names if k not in self.locked_data_keys]
|
||||
if keys:
|
||||
self.note_changed_data()
|
||||
if alpha == 0:
|
||||
self.data[:] = mobject1.data[:]
|
||||
keys = []
|
||||
elif alpha == 1:
|
||||
self.data[:] = mobject2.data[:]
|
||||
keys = []
|
||||
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