0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-19 12:22:15 +02:00

libobs: Deselect scene item before removing

Makes sure that a scene item that gets removed is in the "not selected"
state, no matter whether it was selected before. This causes the
"item_deselect" signal to be sent if the item is selected while being
removed.
This commit is contained in:
gxalpha 2024-09-13 23:06:23 +02:00 committed by Ryan Foster
parent 61d74fb4ab
commit 16b8e9c3fe

View File

@ -2668,6 +2668,7 @@ static void obs_sceneitem_remove_internal(obs_sceneitem_t *item)
obs_scene_t *parent = item->parent;
item->removed = true;
obs_sceneitem_select(item, false);
set_visibility(item, false);
detach_sceneitem(item);