[Bf-blender-cvs] [d268cad06a5] master: Fix T52090: clarify meaning of EnumProperty number when using ENUM_FLAG.

Brecht Van Lommel noreply at git.blender.org
Mon Jul 17 18:55:03 CEST 2017


Commit: d268cad06a5207d63ff10026eeb09fe450282a01
Author: Brecht Van Lommel
Date:   Mon Jul 17 13:56:51 2017 +0200
Branches: master
https://developer.blender.org/rBd268cad06a5207d63ff10026eeb09fe450282a01

Fix T52090: clarify meaning of EnumProperty number when using ENUM_FLAG.

===================================================================

M	source/blender/python/intern/bpy_props.c

===================================================================

diff --git a/source/blender/python/intern/bpy_props.c b/source/blender/python/intern/bpy_props.c
index c7787ba9682..362c0281b36 100644
--- a/source/blender/python/intern/bpy_props.c
+++ b/source/blender/python/intern/bpy_props.c
@@ -2697,7 +2697,8 @@ PyDoc_STRVAR(BPy_EnumProperty_doc,
 "      :icon: An icon string identifier or integer icon value\n"
 "         (e.g. returned by :class:`bpy.types.UILayout.icon`)\n"
 "      :number: Unique value used as the identifier for this item (stored in file data).\n"
-"         Use when the identifier may need to change.\n"
+"         Use when the identifier may need to change. If the *ENUM_FLAG* option is used,\n"
+"         the values are bitmasks and should be powers of two.\n"
 "\n"
 "      When an item only contains 4 items they define ``(identifier, name, description, number)``.\n"
 "\n"




More information about the Bf-blender-cvs mailing list