Explorar o código

libobs: Set lock state when duplicating scene item

Fixes bug where the lock state wouldn't be copied when duplicating
a scene.
Clayton Groeneveld %!s(int64=4) %!d(string=hai) anos
pai
achega
fdd34c35fc
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      libobs/obs-scene.c

+ 1 - 0
libobs/obs-scene.c

@@ -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);