Fix for recent rna rename of global to use_global
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 9 Dec 2011 15:56:04 +0000 (15:56 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 9 Dec 2011 15:56:04 +0000 (15:56 +0000)
source/blender/editors/object/object_ops.c

index b7fe2d70b37f4bf385a2bcfd7b2ecea805c6a68c..3b4a5ed976e0b91f9e0e51c899ced3c3afdaff48 100644 (file)
@@ -338,9 +338,9 @@ void ED_keymap_object(wmKeyConfig *keyconf)
        WM_keymap_add_item(keymap, "OBJECT_OT_move_to_layer", MKEY, KM_PRESS, 0, 0);
        
        WM_keymap_add_item(keymap, "OBJECT_OT_delete", XKEY, KM_PRESS, 0, 0);
-       RNA_boolean_set(WM_keymap_add_item(keymap, "OBJECT_OT_delete", XKEY, KM_PRESS, KM_SHIFT, 0)->ptr, "global", TRUE);
+       RNA_boolean_set(WM_keymap_add_item(keymap, "OBJECT_OT_delete", XKEY, KM_PRESS, KM_SHIFT, 0)->ptr, "use_global", TRUE);
        WM_keymap_add_item(keymap, "OBJECT_OT_delete", DELKEY, KM_PRESS, 0, 0);
-       RNA_boolean_set(WM_keymap_add_item(keymap, "OBJECT_OT_delete", DELKEY, KM_PRESS, KM_SHIFT, 0)->ptr, "global", TRUE);
+       RNA_boolean_set(WM_keymap_add_item(keymap, "OBJECT_OT_delete", DELKEY, KM_PRESS, KM_SHIFT, 0)->ptr, "use_global", TRUE);
 
        WM_keymap_add_menu(keymap, "INFO_MT_add", AKEY, KM_PRESS, KM_SHIFT, 0);