Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-09-18 09:20:43 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-09-18 09:20:43 +0400
commitb6631b8be74070562b4eb2c4230c7b6ffab92f4b (patch)
treef4158695369100f72999d383cc860df9603245ac /source
parentdc4cded2c22656828499831f13471506ed59fc0a (diff)
fixes for python api docs.
also move foreach_get/set examples into their own py example files (prefer not to have example code built into blenders binary).
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/intern/bpy_rna.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c
index afa855d6d99..4d4d4873390 100644
--- a/source/blender/python/intern/bpy_rna.c
+++ b/source/blender/python/intern/bpy_rna.c
@@ -4600,17 +4600,6 @@ PyDoc_STRVAR(pyrna_prop_collection_foreach_get_doc,
".. method:: foreach_get(attr, seq)\n"
"\n"
" This is a function to give fast access to attributes within a collection.\n"
-"\n"
-" Only works for 'basic type' properties (bool, int and float)!\n"
-" Multi-dimensional arrays (like array of vectors) will be flattened into seq.\n"
-"\n"
-" .. code-block:: python\n"
-"\n"
-" collection.foreach_get(attr, someseq)\n"
-"\n"
-" # Python equivalent\n"
-" for i in range(len(seq)): someseq[i] = getattr(collection[i], attr)\n"
-"\n"
);
static PyObject *pyrna_prop_collection_foreach_get(BPy_PropertyRNA *self, PyObject *args)
{
@@ -4623,17 +4612,6 @@ PyDoc_STRVAR(pyrna_prop_collection_foreach_set_doc,
".. method:: foreach_set(attr, seq)\n"
"\n"
" This is a function to give fast access to attributes within a collection.\n"
-"\n"
-" Only works for 'basic type' properties (bool, int and float)!\n"
-" seq must be uni-dimensional, multi-dimensional arrays (like array of vectors) will be re-created from it.\n"
-"\n"
-" .. code-block:: python\n"
-"\n"
-" collection.foreach_set(attr, seq)\n"
-"\n"
-" # Python equivalent\n"
-" for i in range(len(seq)): setattr(collection[i], attr, seq[i])\n"
-"\n"
);
static PyObject *pyrna_prop_collection_foreach_set(BPy_PropertyRNA *self, PyObject *args)
{