From a276b9023b9a19f70899e017e04c016702eddfbd Mon Sep 17 00:00:00 2001 From: Christoph Hohmann Date: Sat, 5 Nov 2016 19:51:06 +0100 Subject: [PATCH] libobs: Duplicate filters of a scene when it is is duplicated When a scene is duplicated the filters on the scene were not copied to the new scene. This causes that a temporary copy of a scene renders differently in the program than in the preview when using studio mode. --- libobs/obs-source.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libobs/obs-source.c b/libobs/obs-source.c index 044e68879..32171701c 100644 --- a/libobs/obs-source.c +++ b/libobs/obs-source.c @@ -410,7 +410,9 @@ obs_source_t *obs_source_duplicate(obs_source_t *source, obs_scene_t *new_scene = obs_scene_duplicate(scene, new_name, create_private ? OBS_SCENE_DUP_PRIVATE_COPY : OBS_SCENE_DUP_COPY); - return obs_scene_get_source(new_scene); + obs_source_t *new_source = obs_scene_get_source(new_scene); + duplicate_filters(new_source, source, create_private); + return new_source; } settings = obs_data_create();