mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 14:03:59 +08:00
Fixed missing arg in self.get_parts_by_text
This commit is contained in:
@ -107,8 +107,8 @@ class Text(SVGMobject):
|
|||||||
for i, j in self.find_indexes(word)
|
for i, j in self.find_indexes(word)
|
||||||
))
|
))
|
||||||
|
|
||||||
def get_part_by_text(word):
|
def get_part_by_text(self, word):
|
||||||
parts = self.get_parts_by_text()
|
parts = self.get_parts_by_text(word)
|
||||||
if len(parts) > 0:
|
if len(parts) > 0:
|
||||||
return parts[0]
|
return parts[0]
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user