mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Deleted the cast error in class TOP
This commit is contained in:
parent
0092ac9a2a
commit
ea0f2c97f4
1 changed files with 15 additions and 27 deletions
|
@ -121,6 +121,7 @@ class Mobject(object):
|
|||
def shift(self, *vectors):
|
||||
total_vector = reduce(op.add, vectors)
|
||||
for mob in self.family_members_with_points():
|
||||
mob.points = mob.points.astype('float')
|
||||
mob.points += total_vector
|
||||
return self
|
||||
|
||||
|
@ -705,16 +706,3 @@ class Group(Mobject):
|
|||
#the mobject is used primarily for its submobject housing
|
||||
#functionality.
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue