diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-05-09 03:34:54 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-05-09 03:34:54 +0400 |
commit | 5548e86795bc1b7f97112c418e611023765c5af6 (patch) | |
tree | c8b951c0de79064a2f563fbd53a3c18b2a1b99d6 /source/blender/python/intern/bpy_props.h | |
parent | 94cd746566eac365605813f0b7b9a5ed93eec271 (diff) |
function to remove property
eg:
bpy.types.Scene.IntProperty(attr="myprop") # adds
bpy.types.Scene.RemoveProperty(attr="myprop") # removes
Diffstat (limited to 'source/blender/python/intern/bpy_props.h')
-rw-r--r-- | source/blender/python/intern/bpy_props.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_props.h b/source/blender/python/intern/bpy_props.h index 5fb62ac56d3..9382fc8115f 100644 --- a/source/blender/python/intern/bpy_props.h +++ b/source/blender/python/intern/bpy_props.h @@ -41,6 +41,8 @@ PyObject *BPy_EnumProperty(PyObject *self, PyObject *args, PyObject *kw); PyObject *BPy_PointerProperty(PyObject *self, PyObject *args, PyObject *kw); PyObject *BPy_CollectionProperty(PyObject *self, PyObject *args, PyObject *kw); +PyObject *BPy_RemoveProperty(PyObject *self, PyObject *args, PyObject *kw); + #define PYRNA_STACK_ARRAY 32 #endif |