From bafc8c88d5c460bef404eeef97c43b36c3618df3 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Thu, 20 Feb 2020 16:49:56 -0800 Subject: [PATCH] subdivide_sharp_curves -> should_subdivide_sharp_curves --- manimlib/mobject/svg/svg_mobject.py | 4 ++-- manimlib/mobject/svg/tex_mobject.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manimlib/mobject/svg/svg_mobject.py b/manimlib/mobject/svg/svg_mobject.py index 0538d240..abcd7d91 100644 --- a/manimlib/mobject/svg/svg_mobject.py +++ b/manimlib/mobject/svg/svg_mobject.py @@ -324,7 +324,7 @@ class SVGMobject(VMobject): class VMobjectFromSVGPathstring(VMobject): CONFIG = { "long_lines": True, - "subdivide_sharp_curves": False, + "should_subdivide_sharp_curves": False, } def __init__(self, path_string, **kwargs): @@ -350,7 +350,7 @@ class VMobjectFromSVGPathstring(VMobject): for command, coord_string in self.get_commands_and_coord_strings(): new_points = self.string_to_points(command, coord_string) self.handle_command(command, new_points) - if self.subdivide_sharp_curves: + if self.should_subdivide_sharp_curves: # For a healthy triangulation later self.subdivide_sharp_curves() # SVG treats y-coordinate differently diff --git a/manimlib/mobject/svg/tex_mobject.py b/manimlib/mobject/svg/tex_mobject.py index e701a644..207b650b 100644 --- a/manimlib/mobject/svg/tex_mobject.py +++ b/manimlib/mobject/svg/tex_mobject.py @@ -17,7 +17,7 @@ TEX_MOB_SCALE_FACTOR = 0.05 class TexSymbol(VMobjectFromSVGPathstring): CONFIG = { - "subdivide_sharp_curves": True, + "should_subdivide_sharp_curves": True, }