From 623421d580277f6e1f5404c019d4f807cf1645e9 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 17 Nov 2008 18:44:06 +0000 Subject: RNA * Added support for ID properties, mapped as follows: * IDP Int = RNA Int * IDP Float, Double = RNA Float * IDP_String = RNA String * IDP Group = RNA IDPropertyGroup Struct * IDP_Array = RNA Array * PropertyRNA and StructRNA are now defined private for the module, to force external code to always use accessor functions. --- source/blender/blenkernel/BKE_idprop.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'source/blender/blenkernel/BKE_idprop.h') diff --git a/source/blender/blenkernel/BKE_idprop.h b/source/blender/blenkernel/BKE_idprop.h index 2274c54ad3b..0021d531c85 100644 --- a/source/blender/blenkernel/BKE_idprop.h +++ b/source/blender/blenkernel/BKE_idprop.h @@ -30,16 +30,6 @@ #include "DNA_ID.h" -/* -these two are included for their (new :P )function -pointers. -*/ -#include "BLO_readfile.h" -#include "BLO_writefile.h" - -struct WriteData; -struct FileData; - struct IDProperty; struct ID; @@ -176,5 +166,6 @@ void IDP_UnlinkProperty(struct IDProperty *prop); #define IDP_Float(prop) (*(float*)&prop->data.val) #define IDP_String(prop) ((char*)prop->data.pointer) #define IDP_Array(prop) (prop->data.pointer) +#define IDP_Double(prop) (*(double*)&prop->data.val) #endif /* _BKE_IDPROP_H */ -- cgit v1.2.3