Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Change default behave for VMobject.apply_function

Grant Sandersone0646605be85
diff --git a/mobject/vectorized_mobject.py b/mobject/vectorized_mobject.py
index e00325d6e..ba5cb6db7 100644
--- a/mobject/vectorized_mobject.py
+++ b/mobject/vectorized_mobject.py
@@ -224,7 +224,7 @@ class VMobject(Mobject):
self.submobjects
)
- def apply_function(self, function, maintain_smoothness = True):
+ def apply_function(self, function, maintain_smoothness = False):
Mobject.apply_function(self, function)
if maintain_smoothness and self.considered_smooth:
self.make_smooth()
diff --git a/topics/number_line.py b/topics/number_line.py
index a5e1d5769..fd5157caf 100644
--- a/topics/number_line.py
+++ b/topics/number_line.py
@@ -279,6 +279,9 @@ class NumberPlane(VMobject):
mob.make_smooth()
return self
+ def apply_function(self, function, maintain_smoothness = True):
+ SVGMobject.apply_function(self, function, maintain_smoothness = maintain_smoothness)
+