提交 c7067420 编写于 作者: S SuslikV 提交者: jp9000

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
上级 f81adbd8
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册