From c0fba529d90dfd271cca271364c2950576a7a286 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 11 Jan 2023 14:20:33 -0800 Subject: [PATCH] Update crosshair for new path structure --- manimlib/scene/interactive_scene.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manimlib/scene/interactive_scene.py b/manimlib/scene/interactive_scene.py index b3eb0fb2..afb79f29 100644 --- a/manimlib/scene/interactive_scene.py +++ b/manimlib/scene/interactive_scene.py @@ -160,13 +160,13 @@ class InteractiveScene(Scene): def get_crosshair(self): line = Line(LEFT, RIGHT) - line.insert_n_curves(1) lines = line.replicate(2) lines[1].rotate(PI / 2) crosshair = VMobject() - crosshair.set_points([*lines[0].get_points(), *lines[1].get_points()]) + crosshair.add_subpath(lines[0].get_points()) + crosshair.add_subpath(lines[1].get_points()) crosshair.set_width(self.crosshair_width) - crosshair.set_stroke(self.crosshair_color, width=[2, 0, 2, 2, 0, 2]) + crosshair.set_stroke(self.crosshair_color, width=[2, 0, 2, 0, 2, 0, 2]) crosshair.set_animating_status(True) crosshair.fix_in_frame() return crosshair