mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32: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:
parent
61d74fb4ab
commit
16b8e9c3fe
@ -2668,6 +2668,7 @@ static void obs_sceneitem_remove_internal(obs_sceneitem_t *item)
|
|||||||
obs_scene_t *parent = item->parent;
|
obs_scene_t *parent = item->parent;
|
||||||
item->removed = true;
|
item->removed = true;
|
||||||
|
|
||||||
|
obs_sceneitem_select(item, false);
|
||||||
set_visibility(item, false);
|
set_visibility(item, false);
|
||||||
|
|
||||||
detach_sceneitem(item);
|
detach_sceneitem(item);
|
||||||
|
Loading…
Reference in New Issue
Block a user