From b2df51c41a26548fb8760fd5f1bfaf0a5122b91d Mon Sep 17 00:00:00 2001 From: Varniex Date: Mon, 16 Dec 2024 21:30:12 +0530 Subject: [PATCH] resolving a minor bug in string_mobject --- manimlib/mobject/svg/string_mobject.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manimlib/mobject/svg/string_mobject.py b/manimlib/mobject/svg/string_mobject.py index 85031d87..8e1631ba 100644 --- a/manimlib/mobject/svg/string_mobject.py +++ b/manimlib/mobject/svg/string_mobject.py @@ -122,8 +122,8 @@ class StringMobject(SVGMobject, ABC): # of submobject which are and use those for labels unlabelled_submobs = submobs labelled_content = self.get_content(is_labelled=True) - labelled_file = self.get_file_path_by_content(labelled_content) - labelled_submobs = super().mobjects_from_file(labelled_file) + labelled_file = self.get_svg_string_by_content(labelled_content) + labelled_submobs = super().mobjects_from_svg_string(labelled_file) self.labelled_submobs = labelled_submobs self.unlabelled_submobs = unlabelled_submobs