Change defaults on when triangulation is locked...again

This commit is contained in:
Grant Sanderson 2020-02-17 14:01:46 -08:00
parent 47daf8e7f7
commit 6e932a24d2
3 changed files with 3 additions and 2 deletions

View file

@ -457,6 +457,7 @@ class Bubble(SVGMobject):
def flip(self, axis=UP): def flip(self, axis=UP):
Mobject.flip(self, axis=axis) Mobject.flip(self, axis=axis)
self.refresh_triangulation()
if abs(axis[1]) > 0: if abs(axis[1]) > 0:
self.direction = -np.array(self.direction) self.direction = -np.array(self.direction)
return self return self

View file

@ -328,6 +328,8 @@ class VMobjectFromSVGPathstring(VMobject):
self.subdivide_sharp_curves() self.subdivide_sharp_curves()
# SVG treats y-coordinate differently # SVG treats y-coordinate differently
self.stretch(-1, 1, about_point=ORIGIN) self.stretch(-1, 1, about_point=ORIGIN)
# For faster rendering
self.lock_triangulation()
def get_commands_and_coord_strings(self): def get_commands_and_coord_strings(self):
all_commands = list(self.get_command_to_function_map().keys()) all_commands = list(self.get_command_to_function_map().keys())

View file

@ -48,8 +48,6 @@ class SingleStringTexMobject(SVGMobject):
self.scale(TEX_MOB_SCALE_FACTOR) self.scale(TEX_MOB_SCALE_FACTOR)
if self.organize_left_to_right: if self.organize_left_to_right:
self.organize_submobjects_left_to_right() self.organize_submobjects_left_to_right()
# For faster rendering
self.lock_triangulation()
def get_modified_expression(self, tex_string): def get_modified_expression(self, tex_string):
result = self.alignment + " " + tex_string result = self.alignment + " " + tex_string