mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 14:03:59 +08:00
Fix data["orientation"] alignment issue a separate way
This commit is contained in:
@ -113,7 +113,6 @@ class FadeTransform(Transform):
|
|||||||
start, end = self.starting_mobject, self.ending_mobject
|
start, end = self.starting_mobject, self.ending_mobject
|
||||||
for m0, m1 in ((start[1], start[0]), (end[0], end[1])):
|
for m0, m1 in ((start[1], start[0]), (end[0], end[1])):
|
||||||
self.ghost_to(m0, m1)
|
self.ghost_to(m0, m1)
|
||||||
self.ending_mobject.align_data(self.mobject)
|
|
||||||
|
|
||||||
def ghost_to(self, source: Mobject, target: Mobject) -> None:
|
def ghost_to(self, source: Mobject, target: Mobject) -> None:
|
||||||
source.replace(target, stretch=self.stretch, dim_to_match=self.dim_to_match)
|
source.replace(target, stretch=self.stretch, dim_to_match=self.dim_to_match)
|
||||||
|
@ -944,6 +944,10 @@ class VMobject(Mobject):
|
|||||||
def refresh_triangulation(self):
|
def refresh_triangulation(self):
|
||||||
for mob in self.get_family():
|
for mob in self.get_family():
|
||||||
mob.needs_new_triangulation = True
|
mob.needs_new_triangulation = True
|
||||||
|
mob.data["orientation"] = resize_array(
|
||||||
|
mob.data["orientation"],
|
||||||
|
mob.get_num_points()
|
||||||
|
)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def get_triangulation(self):
|
def get_triangulation(self):
|
||||||
|
Reference in New Issue
Block a user