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

libobs: Add default hotkey id to duplicated item

Fixes https://obsproject.com/mantis/view.php?id=508

The toggle_visibility set only by init_hotkeys() call, but used each
time in obs_sceneitem_destroy() call.  Because zero hotkey_pair_id is
valid - we need to set item property other than zero here.

Closes jp9000/obs-studio#1000
上级 0b909a8d
......@@ -1119,6 +1119,9 @@ obs_scene_t *obs_scene_duplicate(obs_scene_t *scene, const char *name,
new_item->bounds_align = item->bounds_align;
new_item->bounds = item->bounds;
new_item->toggle_visibility =
OBS_INVALID_HOTKEY_PAIR_ID;
obs_sceneitem_set_crop(new_item, &item->crop);
if (!new_item->item_render &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册