PROP_ENUM_NO_CONTEXT flag for rna properties, forcing enum item functions to be passe...
authorMartin Poirier <theeth@yahoo.com>
Wed, 27 Jan 2010 21:19:39 +0000 (21:19 +0000)
committerMartin Poirier <theeth@yahoo.com>
Wed, 27 Jan 2010 21:19:39 +0000 (21:19 +0000)
commitfb7878a2c29338ee706b5add6a9a95b665616725
tree6612060c1a0c88fb283cab4659755cd6f007afef
parent86a65890c469506717cef8e5fba48993d8e0379f
PROP_ENUM_NO_CONTEXT flag for rna properties, forcing enum item functions to be passed a null context (to return non-contextual items).

This is set on keymap item operator properties and macro definition operator properties to make them non-contextual (since the context at definition time is most likely not the same then at execution time, it's better to have all options visible).

This removes some more errors in keymap export and import.

This commit also sanitize some enum item function, making sure they can cope with null context and have usable defaults in that case.
source/blender/editors/armature/poselib.c
source/blender/editors/mesh/editmesh_mods.c
source/blender/editors/mesh/editmesh_tools.c
source/blender/editors/object/object_group.c
source/blender/editors/object/object_relations.c
source/blender/makesrna/RNA_enum_types.h
source/blender/makesrna/RNA_types.h
source/blender/makesrna/intern/rna_access.c
source/blender/windowmanager/WM_api.h
source/blender/windowmanager/intern/wm_keymap.c
source/blender/windowmanager/intern/wm_operators.c