mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 21:44:19 +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)
|
||||
))
|
||||
|
||||
def get_part_by_text(word):
|
||||
parts = self.get_parts_by_text()
|
||||
def get_part_by_text(self, word):
|
||||
parts = self.get_parts_by_text(word)
|
||||
if len(parts) > 0:
|
||||
return parts[0]
|
||||
else:
|
||||
|
Reference in New Issue
Block a user