revert changes in mobject.py and camera.py

This commit is contained in:
MathItYT
2024-10-27 14:10:12 -03:00
parent 52948f846e
commit 693a859caf
3 changed files with 12 additions and 8 deletions

View File

@ -373,7 +373,7 @@ class Scene(object):
Groups of all clusters of adjacent Mobjects in the scene
"""
batches = batch_by_property(
sorted(self.mobjects, key=lambda m: m.z_index),
self.mobjects,
lambda m: str(type(m)) + str(m.get_shader_wrapper(self.camera.ctx).get_id()) + str(m.z_index)
)