From d32e1fb81d99e84e72cffef0469b22128ee2bc55 Mon Sep 17 00:00:00 2001 From: Zachary Spector Date: Sun, 25 Aug 2024 00:49:24 +1200 Subject: [PATCH] Avoid a redundant keyframe snap on close --- LiSE/LiSE/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LiSE/LiSE/engine.py b/LiSE/LiSE/engine.py index bbe2a876..3dfdaee9 100644 --- a/LiSE/LiSE/engine.py +++ b/LiSE/LiSE/engine.py @@ -1282,7 +1282,7 @@ def close(self) -> None: self.cache_arrange_queue.put("shutdown") if self._cache_arrange_thread.is_alive(): self._cache_arrange_thread.join() - if self._keyframe_on_close: + if self._keyframe_on_close and self._btt() not in self._keyframes_times: self.snap_keyframe() for store in self.stores: if hasattr(store, "save"):