Skip to content

Commit aa331cf

Browse files
committed
propagate z_index from MathTex to TexSymbol
1 parent 3803bf2 commit aa331cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manim/mobject/svg/tex_mobject.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def get_tex_string(self):
329329
def path_string_to_mobject(self, path_string):
330330
# Overwrite superclass default to use
331331
# specialized path_string mobject
332-
return TexSymbol(path_string)
332+
return TexSymbol(path_string, z_index=self.z_index)
333333

334334
def organize_submobjects_left_to_right(self):
335335
self.sort(lambda p: p[0])
@@ -417,6 +417,7 @@ def break_up_by_substrings(self):
417417
tex_string,
418418
tex_environment=self.tex_environment,
419419
tex_template=self.tex_template,
420+
z_index=self.z_index,
420421
)
421422
num_submobs = len(sub_tex_mob.submobjects)
422423
new_index = curr_index + num_submobs

0 commit comments

Comments
 (0)