libobs: Fix scene filter duplication
Scene filters were not being copied when a scene was duplicated with obs_scene_duplicate. Closes jp9000/obs-studio#1104
This commit is contained in:
@@ -1095,6 +1095,8 @@ obs_scene_t *obs_scene_duplicate(obs_scene_t *scene, const char *name,
|
||||
new_scene = make_private ?
|
||||
obs_scene_create_private(name) : obs_scene_create(name);
|
||||
|
||||
obs_source_copy_filters(new_scene->source, scene->source);
|
||||
|
||||
obs_data_apply(new_scene->source->private_settings,
|
||||
scene->source->private_settings);
|
||||
|
||||
|
@@ -452,7 +452,6 @@ obs_source_t *obs_source_duplicate(obs_source_t *source,
|
||||
create_private ? OBS_SCENE_DUP_PRIVATE_COPY :
|
||||
OBS_SCENE_DUP_COPY);
|
||||
obs_source_t *new_source = obs_scene_get_source(new_scene);
|
||||
duplicate_filters(new_source, source, create_private);
|
||||
return new_source;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user