mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
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:
parent
38c47bc76f
commit
971dd6713b
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user