diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-02-03 13:00:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-02-03 13:00:43 +0300 |
commit | ffc1bdca3b695e0538d3fbf79bf82c64a0a13427 (patch) | |
tree | deba4e80ede68d91767c921e9e81dd9c5e69b2ea /source/blender | |
parent | 3289eff6d9a36b6640606a4e113573bdf88f76c1 (diff) |
bugfix [#20909] (2.5) crash when clicking the arrow-restore button in keymap editor
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/makesrna/intern/rna_wm_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_wm_api.c b/source/blender/makesrna/intern/rna_wm_api.c index 9c41d280dac..f3f384a6dc2 100644 --- a/source/blender/makesrna/intern/rna_wm_api.c +++ b/source/blender/makesrna/intern/rna_wm_api.c @@ -367,6 +367,7 @@ void RNA_api_keymap(StructRNA *srna) func= RNA_def_function(srna, "item_from_id", "WM_keymap_item_find_id"); parm= RNA_def_property(func, "id", PROP_INT, PROP_NONE); + RNA_def_property_flag(parm, PROP_REQUIRED); RNA_def_property_ui_text(parm, "id", "ID of the item."); parm= RNA_def_pointer(func, "item", "KeyMapItem", "Item", ""); RNA_def_function_return(func, parm); @@ -380,7 +381,7 @@ void RNA_api_keymap(StructRNA *srna) func= RNA_def_function(srna, "restore_item_to_default", "rna_keymap_restore_item_to_default"); RNA_def_function_flag(func, FUNC_USE_CONTEXT); parm= RNA_def_pointer(func, "item", "KeyMapItem", "Item", ""); - RNA_def_property_flag(parm, PROP_REQUIRED); + RNA_def_property_flag(parm, PROP_REQUIRED|PROP_NEVER_NULL); } void RNA_api_keymapitem(StructRNA *srna) |