Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/node_ops.c
| Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | |||||
| void ED_operatormacros_node(void) | void ED_operatormacros_node(void) | ||||
| { | { | ||||
| wmOperatorType *ot; | wmOperatorType *ot; | ||||
| wmOperatorTypeMacro *mot; | wmOperatorTypeMacro *mot; | ||||
| ot = WM_operatortype_append_macro("NODE_OT_select_link_viewer", "Link Viewer", | ot = WM_operatortype_append_macro("NODE_OT_select_link_viewer", "Link Viewer", | ||||
| "Select node and link it to a viewer node", | "Select node and link it to a viewer node", | ||||
| OPTYPE_UNDO); | OPTYPE_UNDO); | ||||
| WM_operatortype_macro_define(ot, "NODE_OT_select"); | mot = WM_operatortype_macro_define(ot, "NODE_OT_select"); | ||||
| RNA_boolean_set(mot->ptr, "extend", false); | |||||
| RNA_boolean_set(mot->ptr, "socket_select", true); | |||||
| WM_operatortype_macro_define(ot, "NODE_OT_link_viewer"); | WM_operatortype_macro_define(ot, "NODE_OT_link_viewer"); | ||||
| ot = WM_operatortype_append_macro("NODE_OT_translate_attach", "Move and Attach", | ot = WM_operatortype_append_macro("NODE_OT_translate_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, "release_confirm", true); | RNA_boolean_set(mot->ptr, "release_confirm", true); | ||||
| WM_operatortype_macro_define(ot, "NODE_OT_attach"); | WM_operatortype_macro_define(ot, "NODE_OT_attach"); | ||||
| ▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines | |||||