bugfix: TransitionBegin not emitted after scene collection change (#250)

This commit is contained in:
Stéphane Lepin 2018-11-07 13:08:03 +01:00
parent 962e26040d
commit 9ad340ab02

View File

@ -98,7 +98,6 @@ WSEvents::~WSEvents() {
} }
void WSEvents::deferredInitOperations() { void WSEvents::deferredInitOperations() {
OBSSourceAutoRelease transition = obs_frontend_get_current_transition();
hookTransitionBeginEvent(); hookTransitionBeginEvent();
OBSSourceAutoRelease scene = obs_frontend_get_current_scene(); OBSSourceAutoRelease scene = obs_frontend_get_current_scene();
@ -121,6 +120,7 @@ void WSEvents::FrontendEventHandler(enum obs_frontend_event event, void* private
owner->OnSceneCollectionChange(); owner->OnSceneCollectionChange();
} }
else if (event == OBS_FRONTEND_EVENT_SCENE_COLLECTION_LIST_CHANGED) { else if (event == OBS_FRONTEND_EVENT_SCENE_COLLECTION_LIST_CHANGED) {
owner->hookTransitionBeginEvent();
owner->OnSceneCollectionListChange(); owner->OnSceneCollectionListChange();
} }
else if (event == OBS_FRONTEND_EVENT_TRANSITION_CHANGED) { else if (event == OBS_FRONTEND_EVENT_TRANSITION_CHANGED) {