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.
|
respect to that point.
|
||||||
"""
|
"""
|
||||||
scale_factor = max(scale_factor, min_scale_factor)
|
scale_factor = max(scale_factor, min_scale_factor)
|
||||||
if about_point is None and about_edge is not None:
|
self.apply_points_function(
|
||||||
about_point = self.get_bounding_box_point(about_edge)
|
lambda points: scale_factor * points,
|
||||||
if recurse:
|
about_point=about_point,
|
||||||
for submob in self.submobjects:
|
about_edge=about_edge,
|
||||||
submob.scale(scale_factor, about_point=about_point, recurse=True)
|
works_on_bounding_box=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
|
|
||||||
)
|
|
||||||
return self
|
|
||||||
|
|
||||||
def stretch(self, factor, dim, **kwargs):
|
def stretch(self, factor, dim, **kwargs):
|
||||||
def func(points):
|
def func(points):
|
||||||
|
|
Loading…
Add table
Reference in a new issue