ソースを参照

libobs: Set lock state when duplicating scene item

Fixes bug where the lock state wouldn't be copied when duplicating
a scene.
Clayton Groeneveld 4 年 前
コミット
fdd34c35fc
1 ファイル変更1 行追加0 行削除
  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);