mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Revert changes to Mobject.scale
This commit is contained in:
parent
121e6215f8
commit
7fa2654d8a
1 changed files with 6 additions and 13 deletions
|
@ -572,19 +572,12 @@ class Mobject(object):
|
|||
respect to that point.
|
||||
"""
|
||||
scale_factor = max(scale_factor, min_scale_factor)
|
||||
if about_point is None and about_edge is not None:
|
||||
about_point = self.get_bounding_box_point(about_edge)
|
||||
if recurse:
|
||||
for submob in self.submobjects:
|
||||
submob.scale(scale_factor, about_point=about_point, recurse=True)
|
||||
if not self.submobjects:
|
||||
self.apply_points_function(
|
||||
lambda points: scale_factor * points,
|
||||
works_on_bounding_box=True,
|
||||
about_point=about_point,
|
||||
about_edge=about_edge
|
||||
about_edge=about_edge,
|
||||
works_on_bounding_box=True,
|
||||
)
|
||||
return self
|
||||
|
||||
def stretch(self, factor, dim, **kwargs):
|
||||
def func(points):
|
||||
|
|
Loading…
Add table
Reference in a new issue