diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-02-22 14:58:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-02-22 15:00:11 +0300 |
commit | c44c611c6d8c6ae071b48efb5fc07168f18cd17e (patch) | |
tree | b7bcb7b59badd703478c8e31b6bbfd652b02c410 /source | |
parent | 086d70e910a09185e220169342367a0c95ade0fc (diff) |
PyAPI: expose unstable type bpy.props._PropertyDeferred
Even though this might change, rigify, animation-nodes & translation
extraction depend on being able to extract this information.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/intern/bpy_props.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_props.c b/source/blender/python/intern/bpy_props.c index 3cc894826bd..b2812e0eba7 100644 --- a/source/blender/python/intern/bpy_props.c +++ b/source/blender/python/intern/bpy_props.c @@ -271,10 +271,17 @@ static PyGetSetDef bpy_prop_deferred_getset[] = { {NULL, NULL, NULL, NULL, NULL} /* Sentinel */ }; +PyDoc_STRVAR(bpy_prop_deferred_doc, + "Intermediate storage for properties before registration.\n" + "\n" + ".. note::\n" + "\n" + " This is not part of the stable API and may change between releases."); + PyTypeObject bpy_prop_deferred_Type = { PyVarObject_HEAD_INIT(NULL, 0) - .tp_name = "bpy_prop_deferred", + .tp_name = "_PropertyDeferred", .tp_basicsize = sizeof(BPy_PropDeferred), .tp_dealloc = (destructor)bpy_prop_deferred_dealloc, .tp_repr = (reprfunc)bpy_prop_deferred_repr, @@ -282,6 +289,7 @@ PyTypeObject bpy_prop_deferred_Type = { .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, + .tp_doc = bpy_prop_deferred_doc, .tp_traverse = (traverseproc)bpy_prop_deferred_traverse, .tp_clear = (inquiry)bpy_prop_deferred_clear, @@ -3762,6 +3770,7 @@ PyObject *BPY_rna_props(void) if (PyType_Ready(&bpy_prop_deferred_Type) < 0) { return NULL; } + PyModule_AddType(submodule, &bpy_prop_deferred_Type); return submodule; } |