From 1e242d36308f0ca4d414168cf473d62bfa80703b Mon Sep 17 00:00:00 2001 From: Exeldro Date: Thu, 24 Mar 2022 23:33:53 -0700 Subject: [PATCH] libobs: Unload show/hide transition on load if none Fixes an issue where a scene item's show/hide transition would stick around if there was no show/hide transition in the loaded data --- libobs/obs-scene.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libobs/obs-scene.c b/libobs/obs-scene.c index 8a251d9ef..1afe2ff21 100644 --- a/libobs/obs-scene.c +++ b/libobs/obs-scene.c @@ -3768,6 +3768,8 @@ void obs_sceneitem_transition_load(struct obs_scene_item *item, obs_sceneitem_set_transition(item, show, t); obs_source_release(t); obs_data_release(s); + } else { + obs_sceneitem_set_transition(item, show, NULL); } obs_sceneitem_set_transition_duration( item, show, (uint32_t)obs_data_get_int(data, "duration"));