mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
events(SceneCollectionChanged): add new scene collection name
This commit is contained in:
parent
f7616ade1f
commit
d87a7e896b
@ -479,13 +479,17 @@ void WSEvents::OnSceneListChange() {
|
||||
/**
|
||||
* Triggered when switching to another scene collection or when renaming the current scene collection.
|
||||
*
|
||||
* @return {String} `sceneCollection` Name of the new current scene collection.
|
||||
*
|
||||
* @api events
|
||||
* @name SceneCollectionChanged
|
||||
* @category scenes
|
||||
* @since 4.0.0
|
||||
*/
|
||||
void WSEvents::OnSceneCollectionChange() {
|
||||
broadcastUpdate("SceneCollectionChanged");
|
||||
OBSDataAutoRelease fields = obs_data_create();
|
||||
obs_data_set_string(fields, "sceneCollection", obs_frontend_get_current_scene_collection());
|
||||
broadcastUpdate("SceneCollectionChanged", fields);
|
||||
|
||||
OnTransitionListChange();
|
||||
OnTransitionChange();
|
||||
|
Loading…
x
Reference in New Issue
Block a user