Three node selection operators added, patch by Michał Ziułek, thanks!
[blender-staging.git] / source / blender / editors / space_node / node_ops.c
index f78abb283130e283a7b6afe4c1407c3b8e477e7d..af857d576348398679dc87c86d34d875ebdfdf61 100644 (file)
@@ -51,6 +51,9 @@ void node_operatortypes(void)
 {
        WM_operatortype_append(NODE_OT_select);
        WM_operatortype_append(NODE_OT_select_extend);
+       WM_operatortype_append(NODE_OT_select_all);
+       WM_operatortype_append(NODE_OT_select_linked_to);
+       WM_operatortype_append(NODE_OT_select_linked_from);
        WM_operatortype_append(NODE_OT_visibility_toggle);
        WM_operatortype_append(NODE_OT_view_all);
        WM_operatortype_append(NODE_OT_select_border);
@@ -59,7 +62,6 @@ void node_operatortypes(void)
        WM_operatortype_append(NODE_OT_resize);
        WM_operatortype_append(NODE_OT_links_cut);
        WM_operatortype_append(NODE_OT_duplicate);
-       
 }
 
 void node_keymap(struct wmWindowManager *wm)
@@ -82,6 +84,10 @@ void node_keymap(struct wmWindowManager *wm)
        WM_keymap_add_item(keymap, "NODE_OT_view_all", HOMEKEY, KM_PRESS, 0, 0);
        WM_keymap_add_item(keymap, "NODE_OT_select_border", BKEY, KM_PRESS, 0, 0);
        WM_keymap_add_item(keymap, "NODE_OT_delete", XKEY, KM_PRESS, 0, 0);
+
+       WM_keymap_add_item(keymap, "NODE_OT_select_all", AKEY, KM_PRESS, 0, 0);
+       WM_keymap_add_item(keymap, "NODE_OT_select_linked_to", LKEY, KM_PRESS, KM_SHIFT, 0);
+       WM_keymap_add_item(keymap, "NODE_OT_select_linked_from", LKEY, KM_PRESS, 0, 0);
        
        transform_keymap_for_space(wm, keymap, SPACE_NODE);
 }