Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/node_select.cc
| Show First 20 Lines • Show All 992 Lines • ▼ Show 20 Lines | |||||
| if (!toposort.index_range().contains(new_index)) { | if (!toposort.index_range().contains(new_index)) { | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| } | } | ||||
| if (nodes_are_same_type_for_select(*toposort[new_index], active_node)) { | if (nodes_are_same_type_for_select(*toposort[new_index], active_node)) { | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| bNode *new_active_node = node_tree.all_nodes()[toposort[new_index]->runtime->index_in_tree]; | bNode *new_active_node = node_tree.all_nodes()[toposort[new_index]->index()]; | ||||
| if (new_active_node == &active_node) { | if (new_active_node == &active_node) { | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| } | } | ||||
| node_select_single(*C, *new_active_node); | node_select_single(*C, *new_active_node); | ||||
| if (!BLI_rctf_inside_rctf(®ion->v2d.cur, &new_active_node->runtime->totr)) { | if (!BLI_rctf_inside_rctf(®ion->v2d.cur, &new_active_node->runtime->totr)) { | ||||
| const int smooth_viewtx = WM_operator_smooth_viewtx_get(op); | const int smooth_viewtx = WM_operator_smooth_viewtx_get(op); | ||||
| ▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines | |||||