mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
A few scene bug fixes
This commit is contained in:
parent
de0e156444
commit
3d9d3be142
1 changed files with 4 additions and 3 deletions
|
@ -83,8 +83,9 @@ class Scene(object):
|
|||
"""
|
||||
caller_locals = inspect.currentframe().f_back.f_locals
|
||||
for key, value in caller_locals.items():
|
||||
if value in objects:
|
||||
setattr(self, key, value)
|
||||
for o in objects:
|
||||
if value is o:
|
||||
setattr(self, key, value)
|
||||
for key, value in newly_named_objects.items():
|
||||
setattr(self, key, value)
|
||||
return self
|
||||
|
@ -348,7 +349,7 @@ class Scene(object):
|
|||
animations.pop()
|
||||
#method should already have target then.
|
||||
else:
|
||||
mobject.target = mobject.deepcopy()
|
||||
mobject.target = mobject.copy()
|
||||
state["curr_method"].im_func(
|
||||
mobject.target, *state["method_args"]
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue