diff options
author | Hans Goudey <h.goudey@me.com> | 2022-02-13 22:15:53 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-02-13 22:15:53 +0300 |
commit | 7d5f6c330f1065f28d8e83eea41b151245b39bed (patch) | |
tree | e39c6c0a01463de2c0f9035869ab540701d675b4 /source/blender/editors/space_node/node_select.cc | |
parent | 7413c2feede68c45f13fa37ebdcbf325d8f32c10 (diff) |
Cleanup: Clang tidy
Use using instead of typedef, remove redundant string init,
use "empty", address qualified auto, use nullptr.
Diffstat (limited to 'source/blender/editors/space_node/node_select.cc')
-rw-r--r-- | source/blender/editors/space_node/node_select.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_node/node_select.cc b/source/blender/editors/space_node/node_select.cc index 9d30ebca6d6..a355487057c 100644 --- a/source/blender/editors/space_node/node_select.cc +++ b/source/blender/editors/space_node/node_select.cc @@ -730,7 +730,7 @@ static int node_box_select_exec(bContext *C, wmOperator *op) /* Frame nodes are selectable by their borders (including their whole rect - as for other * nodes - would prevent selection of other nodes inside that frame. */ const rctf frame_inside = node_frame_rect_inside(*node); - if (BLI_rctf_isect(&rectf, &node->totr, NULL) && + if (BLI_rctf_isect(&rectf, &node->totr, nullptr) && !BLI_rctf_inside_rctf(&frame_inside, &rectf)) { nodeSetSelected(node, select); is_inside = true; @@ -932,7 +932,7 @@ static bool do_lasso_select_node(bContext *C, BLI_rctf_rcti_copy(&rectf, &rect); UI_view2d_region_to_view_rctf(®ion->v2d, &rectf, &rectf); const rctf frame_inside = node_frame_rect_inside(*node); - if (BLI_rctf_isect(&rectf, &node->totr, NULL) && + if (BLI_rctf_isect(&rectf, &node->totr, nullptr) && !BLI_rctf_inside_rctf(&frame_inside, &rectf)) { nodeSetSelected(node, select); changed = true; |