mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 22:13:30 +08:00
Deleted the cast error in class TOP
This commit is contained in:
@ -121,6 +121,7 @@ class Mobject(object):
|
|||||||
def shift(self, *vectors):
|
def shift(self, *vectors):
|
||||||
total_vector = reduce(op.add, vectors)
|
total_vector = reduce(op.add, vectors)
|
||||||
for mob in self.family_members_with_points():
|
for mob in self.family_members_with_points():
|
||||||
|
mob.points = mob.points.astype('float')
|
||||||
mob.points += total_vector
|
mob.points += total_vector
|
||||||
return self
|
return self
|
||||||
|
|
||||||
@ -705,16 +706,3 @@ class Group(Mobject):
|
|||||||
#the mobject is used primarily for its submobject housing
|
#the mobject is used primarily for its submobject housing
|
||||||
#functionality.
|
#functionality.
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user