From d1b1df64a546e7987bf5bc3822800436bdf10b97 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Sat, 4 Feb 2023 16:51:14 -0800 Subject: [PATCH] Ensure Window's scene always points back to window Issues can arise in the few milliseconds of startup otherwise. --- manimlib/window.py | 1 + 1 file changed, 1 insertion(+) diff --git a/manimlib/window.py b/manimlib/window.py index 9bc5090a..299a4c8d 100644 --- a/manimlib/window.py +++ b/manimlib/window.py @@ -29,6 +29,7 @@ class Window(PygletWindow): size: tuple[int, int] = (1280, 720), samples = 0 ): + scene.window = self super().__init__(size=size, samples=samples) self.default_size = size