mirror of
https://github.com/3b1b/manim.git
synced 2025-07-29 21:12:35 +08:00
Include style in MTex.get_mobjects_from
This commit is contained in:
@ -38,8 +38,8 @@ class _LabelledTex(SVGMobject):
|
|||||||
color_str = "#" + "".join([c * 2 for c in color_str[1:]])
|
color_str = "#" + "".join([c * 2 for c in color_str[1:]])
|
||||||
return int(color_str[1:], 16) - 1
|
return int(color_str[1:], 16) - 1
|
||||||
|
|
||||||
def get_mobjects_from(self, element):
|
def get_mobjects_from(self, element, style):
|
||||||
result = super().get_mobjects_from(element)
|
result = super().get_mobjects_from(element, style)
|
||||||
for mob in result:
|
for mob in result:
|
||||||
if not hasattr(mob, "glyph_label"):
|
if not hasattr(mob, "glyph_label"):
|
||||||
mob.glyph_label = -1
|
mob.glyph_label = -1
|
||||||
|
Reference in New Issue
Block a user