Bugfix T42661: shortcut "." and "," for changing pivot center don't work on Graph Editor
This commit is contained in:
parent
5d85949b2d
commit
50c667372e
Notes:
blender-bot
2023-02-14 09:48:22 +01:00
Referenced by issue #42661, shortcut "." and "," for changing pivot center don't work on Graph Editor
|
@ -576,6 +576,19 @@ static void graphedit_keymap_keyframes(wmKeyConfig *keyconf, wmKeyMap *keymap)
|
|||
/* transform system */
|
||||
transform_keymap_for_space(keyconf, keymap, SPACE_IPO);
|
||||
|
||||
/* pivot point settings */
|
||||
kmi = WM_keymap_add_item(keymap, "WM_OT_context_set_enum", COMMAKEY, KM_PRESS, 0, 0);
|
||||
RNA_string_set(kmi->ptr, "data_path", "space_data.pivot_point");
|
||||
RNA_string_set(kmi->ptr, "value", "BOUNDING_BOX_CENTER");
|
||||
|
||||
kmi = WM_keymap_add_item(keymap, "WM_OT_context_set_enum", PERIODKEY, KM_PRESS, 0, 0);
|
||||
RNA_string_set(kmi->ptr, "data_path", "space_data.pivot_point");
|
||||
RNA_string_set(kmi->ptr, "value", "CURSOR");
|
||||
|
||||
kmi = WM_keymap_add_item(keymap, "WM_OT_context_set_enum", PERIODKEY, KM_PRESS, KM_CTRL, 0);
|
||||
RNA_string_set(kmi->ptr, "data_path", "space_data.pivot_point");
|
||||
RNA_string_set(kmi->ptr, "value", "INDIVIDUAL_ORIGINS");
|
||||
|
||||
/* special markers hotkeys for anim editors: see note in definition of this function */
|
||||
ED_marker_keymap_animedit_conflictfree(keymap);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue