From a7702910537fc5c3e09fbb8e6fe468807c61fa0c Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 26 Jan 2022 08:20:38 -0800 Subject: [PATCH] Include style in MTex.get_mobjects_from --- manimlib/mobject/svg/mtex_mobject.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manimlib/mobject/svg/mtex_mobject.py b/manimlib/mobject/svg/mtex_mobject.py index 9168693a..31790d9a 100644 --- a/manimlib/mobject/svg/mtex_mobject.py +++ b/manimlib/mobject/svg/mtex_mobject.py @@ -38,8 +38,8 @@ class _LabelledTex(SVGMobject): color_str = "#" + "".join([c * 2 for c in color_str[1:]]) return int(color_str[1:], 16) - 1 - def get_mobjects_from(self, element): - result = super().get_mobjects_from(element) + def get_mobjects_from(self, element, style): + result = super().get_mobjects_from(element, style) for mob in result: if not hasattr(mob, "glyph_label"): mob.glyph_label = -1