mirror of
https://github.com/3b1b/manim.git
synced 2025-11-13 16:07:47 +00:00
Allow make_smooth and other kwargs for VMobject.apply_function
This commit is contained in:
parent
71f328c7ef
commit
514301e0af
1 changed files with 3 additions and 3 deletions
|
|
@ -845,9 +845,9 @@ class VMobject(Mobject):
|
|||
|
||||
# TODO, how to be smart about tangents here?
|
||||
@triggers_refreshed_triangulation
|
||||
def apply_function(self, function):
|
||||
super().apply_function(function)
|
||||
if self.make_smooth_after_applying_functions:
|
||||
def apply_function(self, function, make_smooth=False, **kwargs):
|
||||
super().apply_function(function, **kwargs)
|
||||
if self.make_smooth_after_applying_functions or make_smooth:
|
||||
self.make_approximately_smooth()
|
||||
return self
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue