Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/windowmanager/intern/wm_keymap.c')
-rw-r--r--source/blender/windowmanager/intern/wm_keymap.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/source/blender/windowmanager/intern/wm_keymap.c b/source/blender/windowmanager/intern/wm_keymap.c
index 3d3a6e46fb2..eedacb056b7 100644
--- a/source/blender/windowmanager/intern/wm_keymap.c
+++ b/source/blender/windowmanager/intern/wm_keymap.c
@@ -57,17 +57,7 @@
static void keymap_properties_set(wmKeyMapItem *kmi)
{
- if(!kmi->properties) {
- IDPropertyTemplate val = {0};
- kmi->properties= IDP_New(IDP_GROUP, val, "wmKeyMapItemProperties");
- }
-
- if(!kmi->ptr) {
- kmi->ptr= MEM_callocN(sizeof(PointerRNA), "wmKeyMapItemPtr");
- WM_operator_properties_create(kmi->ptr, kmi->idname);
- }
-
- kmi->ptr->data= kmi->properties;
+ WM_operator_properties_alloc(&(kmi->ptr), &(kmi->properties), kmi->idname);
}
wmKeyConfig *WM_keyconfig_add(wmWindowManager *wm, char *idname)