mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
fix the depth of svg tag
This commit is contained in:
parent
09ced7ce9a
commit
bbb4fa155c
1 changed files with 3 additions and 2 deletions
|
@ -71,8 +71,9 @@ class SVGMobject(VMobject):
|
|||
doc = minidom.parse(self.file_path)
|
||||
self.ref_to_element = {}
|
||||
|
||||
for svg in doc.getElementsByTagName("svg"):
|
||||
mobjects = self.get_mobjects_from(svg)
|
||||
for child in doc.childNodes:
|
||||
if child.tagName != 'svg': continue
|
||||
mobjects = self.get_mobjects_from(child)
|
||||
if self.unpack_groups:
|
||||
self.add(*mobjects)
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue