Skip to content

Commit

Permalink
Always recompute unit normals on rotate
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed Aug 26, 2024
1 parent 55a7986 commit 22a6b47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manimlib/mobject/types/vectorized_mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,8 @@ def rotate(
about_point,
**kwargs
)
self.data["base_normal"][1::2] = np.dot(self.data["base_normal"][1::2], rot_matrix_T)
for mob in self.get_family():
mob.get_unit_normal(refresh=True)
return self

def set_animating_status(self, is_animating: bool, recurse: bool = True):
Expand Down

0 comments on commit 22a6b47

Please sign in to comment.