mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 22:57:44 +00:00
Fix empty zipping bug
This commit is contained in:
parent
9bbbed3a83
commit
637d779190
1 changed files with 3 additions and 0 deletions
|
|
@ -399,6 +399,9 @@ class LabelledString(_StringSVG):
|
|||
])
|
||||
|
||||
def get_group_substr_items(self) -> tuple[list[Span], list[str]]:
|
||||
if not self.submob_labels:
|
||||
return [], []
|
||||
|
||||
group_labels, submob_spans = zip(
|
||||
*self.compress_neighbours(self.submob_labels)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue