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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-10-22 20:21:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-10-22 20:21:06 +0400
commitb06640c583ed9900223855004d8e9cd6947adf21 (patch)
tree0f5361a3af21ad3a19e04bb2c90965ba897817d7 /source
parentfe823ce3ce37641615776d5e9663259722275391 (diff)
changed WM_OT_context_* operators to pass through if one of the members in the path is None, rather then raising an error.
This means if you refer to a member of an object it will fail silently if there is no active object, but if you use an invalid attribute of the object it raises an error. The method to check this is not nice but works well enough. also removed pageup/down keys for changing the active shape since listviews can do this now.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/object/object_ops.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/source/blender/editors/object/object_ops.c b/source/blender/editors/object/object_ops.c
index 9e1811fe158..ff0566efbcf 100644
--- a/source/blender/editors/object/object_ops.c
+++ b/source/blender/editors/object/object_ops.c
@@ -292,15 +292,6 @@ void ED_keymap_object(wmKeyConfig *keyconf)
WM_keymap_verify_item(keymap, "GROUP_OT_objects_add_active", GKEY, KM_PRESS, KM_SHIFT|KM_CTRL, 0);
WM_keymap_verify_item(keymap, "GROUP_OT_objects_remove_active", GKEY, KM_PRESS, KM_SHIFT|KM_ALT, 0);
- /* if 2.4x keys use these can be replaced, could also use page up/down keys to switch vgroups */
- kmi = WM_keymap_add_item(keymap, "WM_OT_context_cycle_int", PAGEUPKEY, KM_PRESS, 0, 0);
- RNA_string_set(kmi->ptr, "path", "object.active_shape_key_index");
- RNA_boolean_set(kmi->ptr, "reverse", TRUE);
-
- kmi = WM_keymap_add_item(keymap, "WM_OT_context_cycle_int", PAGEDOWNKEY, KM_PRESS, 0, 0);
- RNA_string_set(kmi->ptr, "path", "object.active_shape_key_index");
-
-
/* Lattice */
keymap= WM_keymap_find(keyconf, "Lattice", 0, 0);
keymap->poll= ED_operator_editlattice;