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])
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] )
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)
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)