diff options
Diffstat (limited to 'source/blender/blenkernel/BKE_idprop.h')
-rw-r--r-- | source/blender/blenkernel/BKE_idprop.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_idprop.h b/source/blender/blenkernel/BKE_idprop.h index 46252b310ae..2d7d0e9286f 100644 --- a/source/blender/blenkernel/BKE_idprop.h +++ b/source/blender/blenkernel/BKE_idprop.h @@ -171,4 +171,9 @@ void IDP_FreeProperty(struct IDProperty *prop); /*Unlinks any struct IDProperty<->ID linkage that might be going on.*/ void IDP_UnlinkProperty(struct IDProperty *prop); +#define IDP_Int(prop) (prop->data.val) +#define IDP_Float(prop) (*(float*)&prop->data.val) +#define IDP_String(prop) ((char*)prop->data.pointer) +#define IDP_Array(prop) (prop->data.pointer) + #endif /* _BKE_IDPROP_H */ |