mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 11:03:03 +08:00
Slight speed-up to InteractiveScene.gather_selection
This commit is contained in:
@ -318,9 +318,11 @@ class InteractiveScene(Scene):
|
||||
def gather_new_selection(self):
|
||||
self.is_selecting = False
|
||||
self.remove(self.selection_rectangle)
|
||||
additions = []
|
||||
for mob in reversed(self.get_selection_search_set()):
|
||||
if self.selection_rectangle.is_touching(mob):
|
||||
self.add_to_selection(mob)
|
||||
additions.append(mob)
|
||||
self.add_to_selection(*additions)
|
||||
|
||||
def prepare_grab(self):
|
||||
mp = self.mouse_point.get_center()
|
||||
|
Reference in New Issue
Block a user