Skip to content

Commit

Permalink
Ensure Window's scene always points back to window
Browse files Browse the repository at this point in the history
Issues can arise in the few milliseconds of startup otherwise.
  • Loading branch information
3b1b committed Feb 5, 2023
1 parent 4e90a77 commit d1b1df6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions manimlib/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def __init__(
size: tuple[int, int] = (1280, 720),
samples = 0
):
scene.window = self
super().__init__(size=size, samples=samples)

self.default_size = size
Expand Down

0 comments on commit d1b1df6

Please sign in to comment.