Exemplo n.º 1
0
 def clean_up(self):
     Animation.clean_up(self)
     if hasattr(self, "non_redundant_m2_indices"):
         #Reduce mobject (which has become identical to mobject2), as
         #well as mobject2 itself
         for mobject in [self.mobject, self.ending_mobject]:
             for attr in ['points', 'rgbs']:
                 setattr(
                     mobject, attr,
                     getattr(self.ending_mobject,
                             attr)[self.non_redundant_m2_indices])
Exemplo n.º 2
0
 def clean_up(self):
     Animation.clean_up(self)
     if hasattr(self, "non_redundant_m2_indices"):
         #Reduce mobject (which has become identical to mobject2), as
         #well as mobject2 itself
         for mobject in [self.mobject, self.ending_mobject]:
             for attr in ['points', 'rgbs']:
                 setattr(
                     mobject, attr, 
                     getattr(
                         self.ending_mobject, 
                         attr
                     )[self.non_redundant_m2_indices]
                 )
Exemplo n.º 3
0
 def clean_up(self, surrounding_scene=None):
     Animation.clean_up(self, surrounding_scene)
     if self.replace_mobject_with_target_in_scene and surrounding_scene is not None:
         surrounding_scene.remove(self.mobject)
         if not self.remover:
             surrounding_scene.add(self.original_target_mobject)
Exemplo n.º 4
0
 def clean_up(self, surrounding_scene = None):
     Animation.clean_up(self, surrounding_scene)
     if self.replace_mobject_with_target_in_scene and surrounding_scene is not None:
         surrounding_scene.remove(self.mobject)
         surrounding_scene.add(self.original_target_mobject)