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
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2016-10-18 12:24:33 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2016-10-18 12:24:33 +0300
commitab4c921e82a37d1a34879b0db7fd125749691272 (patch)
tree7687a1dafebfb7a4bd6058971ca0acef9e893840 /source/blender/python
parentcccd3eb5a8107cd215fc5e3b8ecdf275ed5c48f2 (diff)
Clarified warning in EnumProperty
Blender doesn't necessarily crash when Python doesn't keep references to the returned strings. As a result, someone that implements this incorrectly could be lulled into a false sense of correctness by Blender not crashing.
Diffstat (limited to 'source/blender/python')
-rw-r--r--source/blender/python/intern/bpy_props.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_props.c b/source/blender/python/intern/bpy_props.c
index 3baeae0384a..e61018865ab 100644
--- a/source/blender/python/intern/bpy_props.c
+++ b/source/blender/python/intern/bpy_props.c
@@ -2648,7 +2648,8 @@ PyDoc_STRVAR(BPy_EnumProperty_doc,
" .. warning::\n"
"\n"
" There is a known bug with using a callback,\n"
-" Python must keep a reference to the strings returned or Blender will crash.\n"
+" Python must keep a reference to the strings returned or Blender will misbehave\n"
+" or even crash."
"\n"
" :type items: sequence of string tuples or a function\n"
BPY_PROPDEF_NAME_DOC