libobs: Improve readability of scene duplication type

This commit is contained in:
Dennis Sädtler
2025-05-05 15:19:31 -04:00
committed by Ryan Foster
parent 345fe56b6e
commit f1e44c122c
+2 -2
View File
@@ -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;