mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 18:47:46 +00:00
zorder -> z_index
This commit is contained in:
parent
c8326d1cce
commit
08f7cb8d3e
1 changed files with 1 additions and 1 deletions
|
|
@ -420,7 +420,7 @@ class Scene(object):
|
|||
m._scene_order = scene_order+idx
|
||||
idx += 1
|
||||
self.mobjects += new_mobjects
|
||||
self.mobjects = [self.mobjects[0]]+sorted(self.mobjects[1:], key=lambda m:(m.zorder,m._scene_order))
|
||||
self.mobjects = [self.mobjects[0]]+sorted(self.mobjects[1:], key=lambda m:(m.z_index, m._scene_order))
|
||||
self.id_to_mobject_map.update({
|
||||
id(sm): sm
|
||||
for m in new_mobjects
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue