mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 17:58:02 +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?
|
# TODO, how to be smart about tangents here?
|
||||||
@triggers_refreshed_triangulation
|
@triggers_refreshed_triangulation
|
||||||
def apply_function(self, function):
|
def apply_function(self, function, make_smooth=False, **kwargs):
|
||||||
super().apply_function(function)
|
super().apply_function(function, **kwargs)
|
||||||
if self.make_smooth_after_applying_functions:
|
if self.make_smooth_after_applying_functions or make_smooth:
|
||||||
self.make_approximately_smooth()
|
self.make_approximately_smooth()
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue