Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/node_ops.c
| Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | void ED_operatormacros_node(void) | ||||
| /* NODE_OT_translate_attach with remove_on_canel set to true */ | /* NODE_OT_translate_attach with remove_on_canel set to true */ | ||||
| ot = WM_operatortype_append_macro("NODE_OT_translate_attach_remove_on_cancel", | ot = WM_operatortype_append_macro("NODE_OT_translate_attach_remove_on_cancel", | ||||
| "Move and Attach", | "Move and Attach", | ||||
| "Move nodes and attach to frame", | "Move nodes and attach to frame", | ||||
| OPTYPE_UNDO | OPTYPE_REGISTER); | OPTYPE_UNDO | OPTYPE_REGISTER); | ||||
| mot = WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate"); | mot = WM_operatortype_macro_define(ot, "TRANSFORM_OT_translate"); | ||||
| RNA_boolean_set(mot->ptr, "remove_on_cancel", true); | RNA_boolean_set(mot->ptr, "remove_on_cancel", true); | ||||
| RNA_boolean_set(mot->ptr, "view2d_edge_pan", true); | |||||
| WM_operatortype_macro_define(ot, "NODE_OT_attach"); | WM_operatortype_macro_define(ot, "NODE_OT_attach"); | ||||
| WM_operatortype_macro_define(ot, "NODE_OT_insert_offset"); | WM_operatortype_macro_define(ot, "NODE_OT_insert_offset"); | ||||
| /* NOTE: Currently not in a default keymap or menu due to messy keymaps | /* NOTE: Currently not in a default keymap or menu due to messy keymaps | ||||
| * and tricky invoke functionality. | * and tricky invoke functionality. | ||||
| * Kept around in case users want to make own shortcuts. | * Kept around in case users want to make own shortcuts. | ||||
| */ | */ | ||||
| ot = WM_operatortype_append_macro("NODE_OT_detach_translate_attach", | ot = WM_operatortype_append_macro("NODE_OT_detach_translate_attach", | ||||
| ▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines | |||||