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:
parent
cccd3eb5a8
commit
ab4c921e82
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue