From 6ea22994656ba8f9a41bb463069329a3a1e04f46 Mon Sep 17 00:00:00 2001 From: Zen <46526140+master-of-zen@users.noreply.github.com> Date: Sat, 14 Aug 2021 00:24:50 +0300 Subject: [PATCH] Fix scenes file not working --- av1an-core/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/av1an-core/src/lib.rs b/av1an-core/src/lib.rs index 3dc576b..327b79a 100644 --- a/av1an-core/src/lib.rs +++ b/av1an-core/src/lib.rs @@ -1278,7 +1278,11 @@ impl Project { |path| Path::new(&path).to_path_buf(), ); - let mut scenes = if self.resume { + let mut scenes = if self.scenes.is_some() && scene_file.exists() { + crate::split::read_scenes_from_file(scene_file.as_path()) + .unwrap() + .0 + } else if self.resume { crate::split::read_scenes_from_file(scene_file.as_path()) .unwrap() .0