Skip to content

Commit 7b4199c

Browse files
committed
Call _handle_scale_side_effects after scaling takes place
1 parent d8378d8 commit 7b4199c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

manimlib/mobject/mobject.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -572,14 +572,14 @@ def scale(self, scale_factor, min_scale_factor=1e-8, about_point=None, about_edg
572572
respect to that point.
573573
"""
574574
scale_factor = max(scale_factor, min_scale_factor)
575-
for mob in self.get_family():
576-
mob._handle_scale_side_effects(scale_factor)
577575
self.apply_points_function(
578576
lambda points: scale_factor * points,
579577
about_point=about_point,
580578
about_edge=about_edge,
581579
works_on_bounding_box=True,
582580
)
581+
for mob in self.get_family():
582+
mob._handle_scale_side_effects(scale_factor)
583583
return self
584584

585585
def _handle_scale_side_effects(self, scale_factor):
@@ -859,8 +859,8 @@ def put_start_and_end_on(self, start, end):
859859
angle_of_vector(target_vect) - angle_of_vector(curr_vect),
860860
)
861861
self.rotate(
862-
np.arctan2(curr_vect[2], get_norm(curr_vect[:2])) - np.arctan2(target_vect[2], get_norm(target_vect[:2])),
863-
axis = np.array([-target_vect[1], target_vect[0], 0]),
862+
np.arctan2(curr_vect[2], get_norm(curr_vect[:2])) - np.arctan2(target_vect[2], get_norm(target_vect[:2])),
863+
axis=np.array([-target_vect[1], target_vect[0], 0]),
864864
)
865865
self.shift(start - self.get_start())
866866
return self

0 commit comments

Comments
 (0)