From 28bc0907267622168b6fb81566299692448e5e64 Mon Sep 17 00:00:00 2001 From: Niklas Salmoukas Date: Sun, 9 May 2021 08:30:40 -0700 Subject: [PATCH] Ensure load works for new documents too. --- bip/t3dn_bip/previews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bip/t3dn_bip/previews.py b/bip/t3dn_bip/previews.py index ba1645a..aaef89b 100644 --- a/bip/t3dn_bip/previews.py +++ b/bip/t3dn_bip/previews.py @@ -47,7 +47,7 @@ def __init__(self, max_size: tuple = (128, 128), lazy_load: bool = True): self._queue = Queue() if not bpy.app.timers.is_registered(self._timer): - bpy.app.timers.register(self._timer) + bpy.app.timers.register(self._timer, persistent=True) def __len__(self) -> int: '''Return the amount of previews in the collection.'''