From 971dd6713b81fa8e7cd0ef6d9d5124b7109b2dd8 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Sun, 13 Jun 2021 02:15:43 -0700 Subject: [PATCH] Utils: Flip index of GetSceneList() OBS likes to start indexes with 0 at the bottom (eg. scene items), so it's good to match that --- src/utils/Obs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Obs.cpp b/src/utils/Obs.cpp index 0896179a..fd98e3cb 100644 --- a/src/utils/Obs.cpp +++ b/src/utils/Obs.cpp @@ -161,7 +161,7 @@ std::vector Utils::Obs::ListHelper::GetSceneList() obs_source_t *scene = sceneList.sources.array[i]; json sceneJson; sceneJson["sceneName"] = obs_source_get_name(scene); - sceneJson["sceneIndex"] = i; + sceneJson["sceneIndex"] = sceneList.sources.num - (i + 1); ret.push_back(sceneJson); }