mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Merge branch 'master' of github.com:3b1b/manim into moduli
This commit is contained in:
commit
b651050dd0
2 changed files with 6 additions and 6 deletions
|
@ -298,7 +298,7 @@ class SVGMobject(VMobject):
|
|||
if not isinstance(element, minidom.Element):
|
||||
return
|
||||
if element.hasAttribute('id'):
|
||||
return element
|
||||
return [element]
|
||||
for e in element.childNodes:
|
||||
all_childNodes_have_id.append(self.get_all_childNodes_have_id(e))
|
||||
return self.flatten([e for e in all_childNodes_have_id if e])
|
||||
|
@ -371,11 +371,11 @@ class VMobjectFromSVGPathstring(VMobject):
|
|||
new_points = new_points[1:]
|
||||
command = "L"
|
||||
|
||||
# Treat everything as relative line-to until empty
|
||||
for p in new_points:
|
||||
# Treat as relative
|
||||
p[0] += self.points[-1, 0]
|
||||
p[1] += self.points[-1, 1]
|
||||
if isLower:
|
||||
# Treat everything as relative line-to until empty
|
||||
p[0] += self.points[-1, 0]
|
||||
p[1] += self.points[-1, 1]
|
||||
self.add_line_to(p)
|
||||
return
|
||||
|
||||
|
|
|
@ -351,7 +351,7 @@ class SceneFileWriter(object):
|
|||
]
|
||||
subprocess.call(commands)
|
||||
shutil.move(temp_file_path, movie_file_path)
|
||||
subprocess.call(["rm", sound_file_path])
|
||||
os.remove(sound_file_path)
|
||||
|
||||
self.print_file_ready_message(movie_file_path)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue