From ab4c921e82a37d1a34879b0db7fd125749691272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 18 Oct 2016 11:24:33 +0200 Subject: 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. --- source/blender/python/intern/bpy_props.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/python') 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 -- cgit v1.2.3