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
This commit is contained in:
tt2468 2021-06-13 02:15:43 -07:00
parent 38c47bc76f
commit 971dd6713b

View File

@ -161,7 +161,7 @@ std::vector<json> 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);
}