mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Move unit normal refreshing to VMobject
This commit is contained in:
parent
af7c58dbe8
commit
cc81cc5cf5
2 changed files with 5 additions and 1 deletions
|
@ -190,7 +190,6 @@ class Mobject(object):
|
|||
for mob in self.get_family():
|
||||
for key in mob.data:
|
||||
mob.data[key] = mob.data[key][::-1]
|
||||
self.refresh_unit_normal()
|
||||
return self
|
||||
|
||||
def apply_points_function(
|
||||
|
|
|
@ -770,6 +770,11 @@ class VMobject(Mobject):
|
|||
mob.get_unit_normal(recompute=True)
|
||||
return self
|
||||
|
||||
def reverse_points(self):
|
||||
super().reverse_points()
|
||||
self.refresh_unit_normal()
|
||||
return self
|
||||
|
||||
# Alignment
|
||||
def align_points(self, vmobject: VMobject):
|
||||
if self.get_num_points() == len(vmobject.get_points()):
|
||||
|
|
Loading…
Add table
Reference in a new issue