mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Only form render groups from Mobjects of the same type
I.e. bias against forming such groups
This commit is contained in:
parent
513de19657
commit
a823901b98
1 changed files with 2 additions and 2 deletions
|
@ -388,13 +388,13 @@ class Scene(object):
|
|||
"""
|
||||
batches = batch_by_property(
|
||||
self.mobjects,
|
||||
lambda m: m.get_shader_wrapper(self.camera.ctx).get_id()
|
||||
lambda m: str(type(m)) + str(m.get_shader_wrapper(self.camera.ctx).get_id())
|
||||
)
|
||||
|
||||
for group in self.render_groups:
|
||||
group.clear()
|
||||
self.render_groups = [
|
||||
batch[0].get_group_class()(*batch)
|
||||
batch[0].get_group_class()(*batch) if len(batch) > 1 else batch[0]
|
||||
for batch, key in batches
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue