mirror of
https://github.com/3b1b/manim.git
synced 2025-08-03 04:04:36 +08:00
Ensure Window's scene always points back to window
Issues can arise in the few milliseconds of startup otherwise.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user