mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
subdivide_sharp_curves -> should_subdivide_sharp_curves
This commit is contained in:
parent
8d3ec1afd0
commit
bafc8c88d5
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -17,7 +17,7 @@ TEX_MOB_SCALE_FACTOR = 0.05
|
|||
|
||||
class TexSymbol(VMobjectFromSVGPathstring):
|
||||
CONFIG = {
|
||||
"subdivide_sharp_curves": True,
|
||||
"should_subdivide_sharp_curves": True,
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue