From 94d7df0bc13411963f07421870e64172afeb38ec Mon Sep 17 00:00:00 2001 From: tt2468 Date: Wed, 16 Jun 2021 00:51:24 -0700 Subject: [PATCH] EventHandler: Add isGroup bool to create/remove scene events --- src/eventhandler/EventHandler_Scenes.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/eventhandler/EventHandler_Scenes.cpp b/src/eventhandler/EventHandler_Scenes.cpp index 83b024ff..ed0af41e 100644 --- a/src/eventhandler/EventHandler_Scenes.cpp +++ b/src/eventhandler/EventHandler_Scenes.cpp @@ -6,6 +6,7 @@ void EventHandler::HandleSceneCreated(obs_source_t *source) { json eventData; eventData["sceneName"] = obs_source_get_name(source); + eventData["isGroup"] = obs_source_is_group(source); _webSocketServer->BroadcastEvent(EventSubscription::Scenes, "SceneCreated", eventData); } @@ -13,6 +14,7 @@ void EventHandler::HandleSceneRemoved(obs_source_t *source) { json eventData; eventData["sceneName"] = obs_source_get_name(source); + eventData["isGroup"] = obs_source_is_group(source); _webSocketServer->BroadcastEvent(EventSubscription::Scenes, "SceneRemoved", eventData); }