mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +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 mob in self.get_family():
|
||||||
for key in mob.data:
|
for key in mob.data:
|
||||||
mob.data[key] = mob.data[key][::-1]
|
mob.data[key] = mob.data[key][::-1]
|
||||||
self.refresh_unit_normal()
|
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def apply_points_function(
|
def apply_points_function(
|
||||||
|
|
|
@ -770,6 +770,11 @@ class VMobject(Mobject):
|
||||||
mob.get_unit_normal(recompute=True)
|
mob.get_unit_normal(recompute=True)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
def reverse_points(self):
|
||||||
|
super().reverse_points()
|
||||||
|
self.refresh_unit_normal()
|
||||||
|
return self
|
||||||
|
|
||||||
# Alignment
|
# Alignment
|
||||||
def align_points(self, vmobject: VMobject):
|
def align_points(self, vmobject: VMobject):
|
||||||
if self.get_num_points() == len(vmobject.get_points()):
|
if self.get_num_points() == len(vmobject.get_points()):
|
||||||
|
|
Loading…
Add table
Reference in a new issue