mirror of
https://github.com/3b1b/manim.git
synced 2025-11-13 14:57:50 +00:00
fix bad 3D overlapping using z_index
This commit is contained in:
parent
1139b545f9
commit
1738876f43
1 changed files with 2 additions and 2 deletions
|
|
@ -373,8 +373,8 @@ class Scene(object):
|
|||
Groups of all clusters of adjacent Mobjects in the scene
|
||||
"""
|
||||
batches = batch_by_property(
|
||||
self.mobjects,
|
||||
lambda m: str(type(m)) + str(m.get_shader_wrapper(self.camera.ctx).get_id())
|
||||
sorted(self.mobjects, key=lambda m: m.z_index),
|
||||
lambda m: str(type(m)) + str(m.get_shader_wrapper(self.camera.ctx).get_id()) + str(m.z_index)
|
||||
)
|
||||
|
||||
for group in self.render_groups:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue