From 750764f411d18b5f57cac3857cf201d4e9425521 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 7 Dec 2009 00:16:57 +0000 Subject: rna flag PROP_ENUM_FLAG which makes rna props a tuple of enums when converted into a PyObject only used by wm.invoke_props_popup() currently --- source/blender/makesrna/RNA_types.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/makesrna/RNA_types.h') diff --git a/source/blender/makesrna/RNA_types.h b/source/blender/makesrna/RNA_types.h index 27dd1069c1c..8743bb39d57 100644 --- a/source/blender/makesrna/RNA_types.h +++ b/source/blender/makesrna/RNA_types.h @@ -87,6 +87,8 @@ typedef enum PropertyUnit { #define RNA_SUBTYPE_UNIT(subtype) (subtype & 0x00FF0000) #define RNA_SUBTYPE_UNIT_VALUE(subtype) (subtype>>16) +#define RNA_ENUM_BITFLAG_SIZE 32 + /* also update rna_property_subtypename when you change this */ typedef enum PropertySubType { PROP_NONE = 0, @@ -161,6 +163,9 @@ typedef enum PropertyFlag { PROP_ID_SELF_CHECK = 1<<20, PROP_NEVER_NULL = 1<<18, + /* flag contains multiple enums */ + PROP_ENUM_FLAG = 1<<21, + /* internal flags */ PROP_BUILTIN = 1<<7, PROP_EXPORT = 1<<8, -- cgit v1.2.3