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)
|
doc = minidom.parse(self.file_path)
|
||||||
self.ref_to_element = {}
|
self.ref_to_element = {}
|
||||||
|
|
||||||
for svg in doc.getElementsByTagName("svg"):
|
for child in doc.childNodes:
|
||||||
mobjects = self.get_mobjects_from(svg)
|
if child.tagName != 'svg': continue
|
||||||
|
mobjects = self.get_mobjects_from(child)
|
||||||
if self.unpack_groups:
|
if self.unpack_groups:
|
||||||
self.add(*mobjects)
|
self.add(*mobjects)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue