mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-28 02:06:12 -04:00
libobs: Improve readability of scene duplication type
This commit is contained in:
committed by
Ryan Foster
parent
345fe56b6e
commit
f1e44c122c
+2
-2
@@ -1996,8 +1996,8 @@ static inline void duplicate_item_data(struct obs_scene_item *dst, struct obs_sc
|
||||
|
||||
obs_scene_t *obs_scene_duplicate(obs_scene_t *scene, const char *name, enum obs_scene_duplicate_type type)
|
||||
{
|
||||
bool make_unique = ((int)type & (1 << 0)) != 0;
|
||||
bool make_private = ((int)type & (1 << 1)) != 0;
|
||||
bool make_unique = type == OBS_SCENE_DUP_COPY || type == OBS_SCENE_DUP_PRIVATE_COPY;
|
||||
bool make_private = type == OBS_SCENE_DUP_PRIVATE_REFS || type == OBS_SCENE_DUP_PRIVATE_COPY;
|
||||
obs_scene_item_ptr_array_t items;
|
||||
struct obs_scene *new_scene;
|
||||
struct obs_scene_item *item;
|
||||
|
||||
Reference in New Issue
Block a user