mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
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:
parent
f81adbd856
commit
c706742097
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue