Use generate_target in method compiling of scene.play

This commit is contained in:
Grant Sanderson 2018-02-20 11:28:11 -08:00
parent 4fdab1ae98
commit 5639f2e6c3

View file

@ -380,7 +380,7 @@ class Scene(Container):
animations.pop() animations.pop()
#method should already have target then. #method should already have target then.
else: else:
mobject.target = mobject.deepcopy() mobject.generate_target()
# #
if len(state["method_args"]) > 0 and isinstance(state["method_args"][-1], dict): if len(state["method_args"]) > 0 and isinstance(state["method_args"][-1], dict):
method_kwargs = state["method_args"].pop() method_kwargs = state["method_args"].pop()