mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 05:17:44 +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
|
Groups of all clusters of adjacent Mobjects in the scene
|
||||||
"""
|
"""
|
||||||
batches = batch_by_property(
|
batches = batch_by_property(
|
||||||
self.mobjects,
|
sorted(self.mobjects, key=lambda m: m.z_index),
|
||||||
lambda m: str(type(m)) + str(m.get_shader_wrapper(self.camera.ctx).get_id())
|
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:
|
for group in self.render_groups:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue