mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 16:57:43 +00:00
Small reshuffling
This commit is contained in:
parent
8adf2a6e07
commit
eeadbe4542
1 changed files with 5 additions and 5 deletions
|
|
@ -388,18 +388,18 @@ class Scene(object):
|
|||
clusters of adjacent VMobjects in the scene's mobject
|
||||
list.
|
||||
"""
|
||||
for group in self.render_groups:
|
||||
group.clear()
|
||||
self.render_groups = []
|
||||
batches = batch_by_property(
|
||||
self.mobjects,
|
||||
lambda m: "".join([
|
||||
str(m.shader_dtype),
|
||||
lambda m: "|".join([
|
||||
str(m.shader_dtype.names),
|
||||
str(m.is_fixed_in_frame()),
|
||||
str(m.depth_test),
|
||||
str(m.is_changing()),
|
||||
])
|
||||
)
|
||||
|
||||
for group in self.render_groups:
|
||||
group.clear()
|
||||
self.render_groups = [
|
||||
batch[0].get_group_class()(*batch)
|
||||
for batch, key in batches
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue