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.
This commit is contained in:
Sybren A. Stüvel 2016-10-18 11:24:33 +02:00
parent cccd3eb5a8
commit ab4c921e82
1 changed files with 2 additions and 1 deletions

View File

@ -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