libobs: Set lock state when duplicating scene item

Fixes bug where the lock state wouldn't be copied when duplicating
a scene.
This commit is contained in:
Clayton Groeneveld 2020-12-31 10:20:12 -06:00 committed by Jim
parent d46e8b03c9
commit fdd34c35fc

View File

@ -1300,6 +1300,7 @@ static inline void duplicate_item_data(struct obs_scene_item *dst,
}
obs_sceneitem_set_crop(dst, &src->crop);
obs_sceneitem_set_locked(dst, src->locked);
if (defer_texture_update) {
os_atomic_set_bool(&dst->update_transform, true);