From 5dba52015581ec83f067df899cf4081aa6f0d868 Mon Sep 17 00:00:00 2001 From: louis Date: Fri, 17 May 2019 12:05:42 -0400 Subject: [PATCH] continue playing scene after selecting specific part --- Js/Main.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Js/Main.js b/Js/Main.js index 10dd382..9c798c0 100644 --- a/Js/Main.js +++ b/Js/Main.js @@ -352,8 +352,13 @@ function sceneSet(questSceneMstId, cust) { if (part === '{All}') { scenePlaylist.push(utage.scenes[cust][questSceneMstId]); } else { - partPlaylist.push(part); currentScene = utage.scenes[cust][questSceneMstId]; + try { + partPlaylist.push.apply(partPlaylist, currentScene.Parts.slice(currentScene.Parts.indexOf(part))); + } catch (error) { + console.log(error); + return; + } } playNext();