From 12512f7d0a5c8990ef2bf0173dd3ac81f8c2b8c1 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Tue, 28 Nov 2017 20:01:38 +0100 Subject: [PATCH] fix for not being able to modify / delete old scene sequences the "sceneRounTripStr" was not adjusted to match the increased precision of the timer --- advanced-scene-switcher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/advanced-scene-switcher.cpp b/advanced-scene-switcher.cpp index 14289360..705833f9 100644 --- a/advanced-scene-switcher.cpp +++ b/advanced-scene-switcher.cpp @@ -658,7 +658,8 @@ static void SaveSceneSwitcher(obs_data_t* save_data, bool saving, void*) const char* transition = obs_data_get_string(array_obj, "transition"); int delay = obs_data_get_int(array_obj, "sceneRoundTripDelay"); delay = delay * 1000 + obs_data_get_int(array_obj, "sceneRoundTripDelayMs"); //extra value for ms to not destroy settings of old versions - const char* sceneRoundTripStr = obs_data_get_string(array_obj, "sceneRoundTripStr"); + string str = MakeSceneRoundTripSwitchName(scene1, scene2, transition, ((double)delay)/1000.0).toUtf8().constData(); //aaaand i broke it + const char* sceneRoundTripStr = str.c_str(); switcher->sceneRoundTripSwitches.emplace_back(GetWeakSourceByName(scene1), GetWeakSourceByName(scene2), GetWeakTransitionByName(transition), delay,