From 2841b2be3949b7592b50cd2ebd03b9b32a5f2058 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 3 Mar 2020 17:21:28 +0100 Subject: IDs: change FILTER_ID_* to 64 bit to make space for new ID types And change file browser to boolean from bitflag enum, which is only 32 bit. Differential Revision: https://developer.blender.org/D7004 --- source/blender/blenkernel/BKE_idcode.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/blenkernel/BKE_idcode.h') diff --git a/source/blender/blenkernel/BKE_idcode.h b/source/blender/blenkernel/BKE_idcode.h index dc58651b4e8..067143e3253 100644 --- a/source/blender/blenkernel/BKE_idcode.h +++ b/source/blender/blenkernel/BKE_idcode.h @@ -24,6 +24,8 @@ * \ingroup bke */ +#include "BLI_sys_types.h" + #ifdef __cplusplus extern "C" { #endif @@ -35,8 +37,8 @@ short BKE_idcode_from_name(const char *name); bool BKE_idcode_is_linkable(short idcode); bool BKE_idcode_is_valid(short idcode); -int BKE_idcode_to_idfilter(const short idcode); -short BKE_idcode_from_idfilter(const int idfilter); +uint64_t BKE_idcode_to_idfilter(const short idcode); +short BKE_idcode_from_idfilter(const uint64_t idfilter); int BKE_idcode_to_index(const short idcode); short BKE_idcode_from_index(const int index); -- cgit v1.2.3