mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Fix a logistic bug (#1815)
This commit is contained in:
parent
49723f54cb
commit
cfded00f13
1 changed files with 1 additions and 1 deletions
|
@ -174,8 +174,8 @@ class StringMobject(SVGMobject, ABC):
|
||||||
):
|
):
|
||||||
l = self.full_span[1]
|
l = self.full_span[1]
|
||||||
span = tuple(
|
span = tuple(
|
||||||
|
default_index if index is None else
|
||||||
min(index, l) if index >= 0 else max(index + l, 0)
|
min(index, l) if index >= 0 else max(index + l, 0)
|
||||||
if index is not None else default_index
|
|
||||||
for index, default_index in zip(sel, self.full_span)
|
for index, default_index in zip(sel, self.full_span)
|
||||||
)
|
)
|
||||||
return [span]
|
return [span]
|
||||||
|
|
Loading…
Add table
Reference in a new issue